Repository navigation
docs(examples): bump SARIF example actions to current majors - #146
Merged
Merged
Conversation
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]>
Invigil —
|
| 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #143, as promised in that review.
What
The SARIF example workflow landed with three action versions already behind:
actions/checkout@v4@v79c091bb…(v7.0.0)actions/setup-python@v5@v75fda3b9…(v7.0.0)codeql-action/upload-sarif@v3@v4e4fba86…(v4.37.3)Each target tag was resolved against upstream before being written here, not recalled —
actions/setup-python@v7resolves to5fda3b95a4ea91299a34e894583c3862153e4b97, the exact SHA.github/workflows/ci.ymlalready pins.Why it happened
Not an oversight in #143. Our
dependabot.ymlregisters thegithub-actionsecosystem at/, but that ecosystem only scans.github/workflows/— it does not walk arbitrary paths. Nothing underexamples/is bumped automatically, so this file would have drifted no matter which versions it started on. That gap is now a comment independabot.ymlso 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.