Harden CI: pin ci.yml actions to commit SHAs - #5275
Merged
Merged
Conversation
Every third-party action in ci.yml and in the setup-openclaw composite action it calls now resolves to a full commit SHA with the semver it came from in a trailing comment. A mutable tag lets an upstream maintainer (or anyone who compromises that account) change what runs in our CI without a commit here; a SHA cannot be moved. Pins only — no version changes. setup-node/cache inside the composite action stay on their current v4 majors, pinned to where those tags point today. Dependabot's github-actions ecosystem keeps proposing upgrades and will update the SHA + comment together. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mi9G4cAAvFDao8bREQCNjX
✅ Drift Bot (ClawMetry): no drift detectedDrift Bot analyzed the changed files against this project's blueprints and requirements and found no drift. |
This was referenced Aug 28, 2026
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.
Addresses the Scorecard PinnedDependencies findings for
ci.yml, the repo's most-run workflow.What this does
Every third-party action referenced by
.github/workflows/ci.yml— and by thesetup-openclawcomposite action thatci.ymlcalls — now resolves to a full 40-character commit SHA, with the semver it came from in a trailing comment:actions/checkout3d3c42e5aac5ba805825da76410c181273ba90b1actions/setup-python5fda3b95a4ea91299a34e894583c3862153e4b97actions/upload-artifact043fb46d1a93c77aae656e7c1c64a875d1fc6a0aactions/setup-node820762786026740c76f36085b0efc47a31fe5020actions/cache55cc8345863c7cc4c66a329aec7e433d2d1c52a9actions/setup-node(composite)49933ea5288caeca8642d1e84afbd3f7d6820020actions/cache(composite)0057852bfaa89a56745cba8c7296529d2fc39830Why
A version tag is mutable.
actions/checkout@v7is whateverv7points at the next time a runner resolves it, so an upstream maintainer — or anyone who takes over that account — can change the code running in our CI without any commit landing in this repo. A commit SHA cannot be moved, so what runs in CI is fixed by this repository's own history.Scope
Pins only, no version changes. Each action was pinned to wherever its current major tag points today. The two actions inside the composite stay on their v4 majors rather than being pulled up to v7 — this PR is a supply-chain fix, not an upgrade, and mixing the two would make it harder to bisect if CI moved.
.github/dependabot.ymlalready covers thegithub-actionsecosystem, so Dependabot continues to propose upgrades and will bump the SHA and the version comment together.Verification
python3 -c "import yaml,glob; [yaml.safe_load(open(f)) for f in glob.glob('.github/workflows/*.yml')]"— OK.uses:line; no structural, permission, or job changes.permissions:block is touched —ci.ymlkeeps the scopes set in Harden CI: least-privilege top-level token scopes (5 remaining workflows) #5250/Harden CI: least-privilege token scopes for the last 3 workflows #5253.uses: ./.github/actions/setup-openclawis left alone (repo-relative, already immutable).Notes
.github/, so the product-record gate does not apply.No-PRD: CI/supply-chain hardening confined to
.github/; no product surface changes.Generated by Claude Code