Merge branch 'main' into docs/credential-and-workflow-comments
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 7s

This commit is contained in:
Defame1297 committed 2026-10-25 20:32:59 +00:00
commit 5ea4bcdcaf
7 files changed
+751 -5

No files matched your search

+5 -2
View File
@@ -18,9 +18,12 @@ on: # yamllint disable-line rule:truthy
permissions:
contents: read
# A newer push to the same pull request cancels the running run; a push to main or a tag
# never cancels another run. A tag run has its own group, so it never shares one with the
# main run of the same commit.
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
group: build-${{ github.event_name == 'pull_request' && github.ref || (github.ref_type == 'tag' && github.ref || github.sha) }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
+25 -3
View File
@@ -19,10 +19,12 @@ on: # yamllint disable-line rule:truthy
permissions:
contents: read
# A newer push to the same ref makes the running lint obsolete.
# A newer push to the same pull request makes the running run obsolete. A push to main is
# never cancelled: each merge commit keeps its own result, so its group is the commit SHA.
# (This workflow has no tag trigger, so no tag branch in the group.)
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
group: lint-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
lint:
@@ -67,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