Merge branch 'main' into fix/ci-concurrency-main-runs
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 8s

This commit is contained in:
Defame1297 committed 2026-10-25 20:29:31 +00:00
commit f98cb1c6b0
5 files changed
+737

No files matched your search

+20
View File
@@ -69,6 +69,26 @@ jobs:
export PATH="/opt/venv/bin:$PATH"
pre-commit run --all-files --show-diff-on-failure
# Image versions and pins (scripts/check_image_versions.py): a change to an image's
# inputs needs a higher version in image.yml, and a pin in a workflow must name an
# image of the matrix. Not a pre-commit hook: a change to .pre-commit-config.yaml
# is itself an input of the ci image and would force an image rebuild.
- name: Check image pins
run: |
export PATH="/opt/venv/bin:$PATH"
python3 scripts/check_image_versions.py pins
- name: Check image versions were bumped
if: github.event_name == 'pull_request'
run: |
export PATH="/opt/venv/bin:$PATH"
python3 scripts/check_image_versions.py bump origin/main
- name: Test the repository scripts
run: |
export PATH="/opt/venv/bin:$PATH"
python3 -m unittest discover -s tests/scripts
# The gitleaks hook scans --staged only, which is empty in a clean checkout,
# so scan the PR's commits explicitly with the binary pre-commit built.
- name: Scan PR commits for secrets