Repository navigation
ci(release): pin release.yml actions to commit SHAs - #354
IronicRayquaza wants to merge 1 commit into
Conversation
The release workflow publishes the GitHub Release with `contents: write` and builds the binaries it attaches, but referenced its actions by mutable tags and branches (useblacksmith/checkout@v1, dtolnay/rust-toolchain@1.99.0, Swatinem/rust-cache@v2, actions/upload-artifact@v7, actions/download-artifact@v8). A moved tag on any of them would run unreviewed code in the job that produces or publishes the release. Pin each to the commit the tag resolves to today, with the version in a trailing comment, matching container.yml. upload-artifact and download-artifact use the same SHAs container.yml already pins. Dependabot's github-actions ecosystem keeps SHA pins current. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This PR has no linked approved issue. Open an issue, get it discussed and Maintainers: reopen this PR to override the gate (it gets the |
|
This is PR 1 of 3 you may keep open at a time. |
|
This PR has no linked approved issue. Open an issue, get it discussed and Maintainers: reopen this PR to override the gate (it gets the |
1 similar comment
|
This PR has no linked approved issue. Open an issue, get it discussed and Maintainers: reopen this PR to override the gate (it gets the |
Summary
Pins every action in
.github/workflows/release.ymlto the commit its tag resolves to today. Each pin keeps a# vX.Y.Zcomment, the same formatcontainer.ymluses.release.ymlbuilds and publishes the GitHub Release withcontents: write, so with mutable tags a moved tag would run unreviewed code in that job.useblacksmith/checkout(3 jobs)@v175c49b6…# v1.8.3dtolnay/rust-toolchain@1.99.0(branch)92e73e1…# 1.99.0Swatinem/rust-cache@v2d1527c8…# v2.9.3actions/upload-artifact@v7043fb46…# v7.0.1 (same SHA ascontainer.yml)actions/download-artifact@v83e5f45b…# v8.0.1 (same SHA ascontainer.yml)Every SHA was checked against the GitHub API today, and each is the commit its tag points to. Behaviour does not change. Dependabot's
github-actionsecosystem (already in.github/dependabot.yml) will keep these pins current.Out of scope, as the issue says:
opencypher-tck.ymland.github/actions/lagraph, which run with read-only tokens.Linked issue
Closes #328
AI Assistance
Checklist
/approved.Breaking changes
None.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.