Skip to content

ci(release): pin release.yml actions to commit SHAs - #354

Closed
IronicRayquaza wants to merge 1 commit into
hydra-db:mainfrom
IronicRayquaza:ci/pin-release-actions
Closed

IronicRayquaza wants to merge 1 commit into
hydra-db:mainfrom
IronicRayquaza:ci/pin-release-actions

Conversation

@IronicRayquaza

@IronicRayquaza IronicRayquaza commented Nov 27, 2026 •

Copy link
Copy Markdown

Summary

Pins every action in .github/workflows/release.yml to the commit its tag resolves to today. Each pin keeps a # vX.Y.Z comment, the same format container.yml uses. release.yml builds and publishes the GitHub Release with contents: write, so with mutable tags a moved tag would run unreviewed code in that job.

Action Was Pinned to
useblacksmith/checkout (3 jobs) @v1 75c49b6… # v1.8.3
dtolnay/rust-toolchain @1.99.0 (branch) 92e73e1… # 1.99.0
Swatinem/rust-cache @v2 d1527c8… # v2.9.3
actions/upload-artifact @v7 043fb46… # v7.0.1 (same SHA as container.yml)
actions/download-artifact @v8 3e5f45b… # v8.0.1 (same SHA as container.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-actions ecosystem (already in .github/dependabot.yml) will keep these pins current.

Out of scope, as the issue says: opencypher-tck.yml and .github/actions/lagraph, which run with read-only tokens.

Linked issue

Closes #328

AI Assistance

Model Effort
Claude Opus 5.5 High

Checklist

  • Implements an issue a maintainer has /approved.
  • Small and scoped to that issue.
  • Breaking changes described below, or none.

Breaking changes

None.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

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>
@IronicRayquaza
IronicRayquaza requested a review from a team November 27, 2026 09:43
@github-actions

Copy link
Copy Markdown

This PR has no linked approved issue. Open an issue, get it discussed and /approved by a maintainer, then link it here with Closes #N. Closing for now; reopen once linked. (Fastest help: the #pr-discussion channel on Discord.)

Maintainers: reopen this PR to override the gate (it gets the gate-override label).

@github-actions

Copy link
Copy Markdown

This is PR 1 of 3 you may keep open at a time.

@github-actions github-actions Bot closed this Nov 27, 2026
@github-actions

Copy link
Copy Markdown

This PR has no linked approved issue. Open an issue, get it discussed and /approved by a maintainer, then link it here with Closes #N. Closing for now; reopen once linked. (Fastest help: the #pr-discussion channel on Discord.)

Maintainers: reopen this PR to override the gate (it gets the gate-override label).

1 similar comment
@github-actions

Copy link
Copy Markdown

This PR has no linked approved issue. Open an issue, get it discussed and /approved by a maintainer, then link it here with Closes #N. Closing for now; reopen once linked. (Fastest help: the #pr-discussion channel on Discord.)

Maintainers: reopen this PR to override the gate (it gets the gate-override label).

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.

release.yml publishes releases with actions referenced by mutable tags; pin them to SHAs like container.yml

1 participant