Skip to content

docs(examples): bump SARIF example actions to current majors - #146

Merged
rrskris merged 1 commit into
mainfrom
fix/examples-action-versions
Aug 5, 2026
Merged

rrskris merged 1 commit into
mainfrom
fix/examples-action-versions

Conversation

@rrskris

@rrskris rrskris commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #143, as promised in that review.

What

The SARIF example workflow landed with three action versions already behind:

Was Now This repo's own workflows pin
actions/checkout@v4 @v7 9c091bb… (v7.0.0)
actions/setup-python@v5 @v7 5fda3b9… (v7.0.0)
codeql-action/upload-sarif@v3 @v4 e4fba86… (v4.37.3)

Each target tag was resolved against upstream before being written here, not recalled — actions/setup-python@v7 resolves to 5fda3b95a4ea91299a34e894583c3862153e4b97, the exact SHA .github/workflows/ci.yml already pins.

Why it happened

Not an oversight in #143. Our dependabot.yml registers the github-actions ecosystem at /, but that ecosystem only scans .github/workflows/ — it does not walk arbitrary paths. Nothing under examples/ is bumped automatically, so this file would have drifted no matter which versions it started on. That gap is now a comment in dependabot.yml so the next example doesn't repeat it.

Why floating tags rather than SHA pins

SHA-pinning a file no bot maintains converts visible staleness into invisible staleness — the pin looks deliberate long after it's rotted. Floating majors stay readable and obviously current, and the header now tells readers to pin SHAs in their own repo, which is the advice a security tool should be giving for a workflow granted security-events: write.

Verification

Both files parse (yaml.safe_load). The scan command itself is unchanged and was verified during the #143 review: exit 0, valid SARIF 2.1.0, 24 results, 12 rules.

The SARIF example workflow added in #143 shipped three action versions that
were already stale: actions/checkout@v4 (current v7), setup-python@v5
(current v7) and codeql-action/upload-sarif@v3 (this repo pins v4.37.3).

Root cause is a dependabot blind spot rather than the PR: the github-actions
ecosystem only scans .github/workflows/, so nothing under examples/ is bumped
automatically and this file would have drifted whatever it started on.

Keep floating major tags here — SHA-pinning a file no bot maintains turns
visible staleness into invisible staleness — and add an explicit note telling
readers to pin SHAs in their own repo, which is the right advice for a
workflow granted security-events: write. Document the ecosystem gap in
dependabot.yml so the next example does not repeat it.

Follow-up to #143 (@shariqueahmad108-ship-it).

Signed-off-by: Vamshi Krishna Santhapuri <[email protected]>
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

Invigil — kaaval

Gate G5 · Grade A+ · 34/35 (97%)

All five doors open and documented

Gate Check Effort Why Fix
G4 OpenSSF Scorecard >= 7 hours score 6.8 < 7 triage the Scorecard findings (branch protection, token perms, pinned deps) to reach >=7

30 passing · 1 failing · 4 skipped · report-only

@rrskris
rrskris merged commit 08aee50 into main Aug 5, 2026
7 checks passed
@rrskris
rrskris deleted the fix/examples-action-versions branch August 5, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant