security: SHA-pin GitHub Actions + add Dependabot#1
Merged
Conversation
Replaces tag-based `uses:` refs with immutable commit SHAs. Closes the attack class where a compromised action tag (e.g., the Mar 2026 reviewdog incident) gets picked up automatically on next workflow run. - actions/checkout@v4 -> @34e114876b0b11c390a56381ad16ebd13914f8d5 - actions/setup-python@v5 -> @a26af69be951a213d495a4c3e4e4022e16d87065 Adds .github/dependabot.yml to keep the pins fresh: Dependabot opens a PR when the underlying tag moves, so pinning doesn't become freeze. Part of platform-wide supply chain hardening Phase 1. Plan: herakles-linux-opus/supply-chain-audit/SYSTEMIC_HARDENING_PLAN.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Pilot PR for platform-wide workflow hardening (Supply Chain Audit Phase 1).
Replaces tag-based action refs with immutable commit SHAs + adds Dependabot to keep pins fresh.
Why
Tag-based
uses: actions/checkout@v4is mutable — anyone with push access toactions/checkoutcan retargetv4at a malicious commit. Subsequent CI runs pick it up silently. This is exactly the failure class behind the March 2026 reviewdog incident.SHA-pinning makes the action immutable. Dependabot keeps it fresh.
Changes
.github/workflows/test.yml— 2 action refs pinned:actions/checkout@v4→@34e114876b0b11c390a56381ad16ebd13914f8d5(v4)actions/setup-python@v5→@a26af69be951a213d495a4c3e4e4022e16d87065(v5).github/dependabot.yml— new; weekly bumps ongithub-actionsecosystem.Verification
SHAs resolved via
gh api repos/actions/{action}/commits/{tag}. Reviewers can re-verify:Test plan
Reference
herakles-linux-opus/supply-chain-audit/SYSTEMIC_HARDENING_PLAN.mdsessions/hercules-supply-chain-audit/🤖 Generated with Claude Code