Repository navigation
ci: pin third-party actions to commit SHAs - #652
Merged
Merged
Conversation
Pins every third-party (and first-party actions/*) GitHub Action used in .github/workflows/ to its full 40-char commit SHA, keeping the original tag as a trailing comment. docker.yml holds GHCR push credentials and the Phala deploy path (PROD_TINYCLOUD_ADMIN_SECRET, production environment); a mutable tag on a marketplace action is a supply-chain risk there.
Integrates main 8c970cf while retaining the action references. This is a single-parent integration snapshot, not a true merge commit. test-ruling: Existing-test changes are inherited unchanged from main during integration.
Configure cargo-dist action refs in Cargo.toml so workflow generation retains the existing revisions. Move release action version labels beside those refs; retain generated-workflow consistency checks.
- Integrate origin/main 8774fca and retain the PR feature unchanged. - Resolve only the additive changelog overlap; retain the production compose and release workflow changes from main. - Single-parent content integration snapshot: the selective commit API cannot create merge parents. test-ruling: TC-1491 retain the production compose fixture artifact-read limit from main (2026-11-19)
samgbafa
marked this pull request as ready for review
November 19, 2026 19:57
This was referenced Nov 19, 2026
Merged
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.
What
Pins every third-party (and first-party
actions/*) GitHub Actionuses:reference in.github/workflows/to its full 40-character commit SHA, with the original tag kept as a trailing comment (# v4,# 1.97.1, etc.). No versions changed — only the ref form. No.github/actions/composite actions exist in this repo. All reusable-workflow calls here are local jobs/steps, not remoteorg/repo/.github/workflows/...@refcalls, so none applied.Why
A mutable tag lets the upstream repo silently change what code runs in CI.
docker.ymlbuilds and pushes to GHCR and, indeploy-phala, runs in theproductionenvironment holdingPROD_TINYCLOUD_ADMIN_SECRETand the Phala deploy path;release.yml/release-plz.ymlpush releases and crates.io/npm-equivalent publishes withRELEASE_PLZ_TOKEN/CARGO_REGISTRY_TOKEN. A tag-based action is a supply-chain path into those secrets.Table (action, tag, resolved commit SHA)
actions/cachev40057852bfaa89a56745cba8c7296529d2fc39830actions/cache/restorev40057852bfaa89a56745cba8c7296529d2fc39830actions/cache/savev40057852bfaa89a56745cba8c7296529d2fc39830actions/checkoutv411d5960a326750d5838078e36cf38b85af677262actions/checkoutv6d23441a48e516b6c34aea4fa41551a30e30af803actions/download-artifactv89000827ccba6bdab643e8b6fd33ac0654aef8333actions/setup-nodev449933ea5288caeca8642d1e84afbd3f7d6820020actions/setup-pythonv5a26af69be951a213d495a4c3e4e4022e16d87065actions/upload-artifactv4ea165f8d65b6e75b540449e92b4886f43607fa02actions/upload-artifactv7cf430e030ddbb5b0abf93d22962f4752f3646cd9docker/build-push-actionv5ca052bb54ab0790a636c9b5f226502c73d547a25docker/login-actionv3c94ce9fb468520275223c153574b00df6fe4bcc9docker/metadata-actionv5c299e40c65443455700f0fdfc63efafe5b349051docker/setup-buildx-actionv38d2750c68a42422c14e847fe6c8ac0403b4cbd6fdtolnay/rust-toolchain1.97.1766a42937d994bd78bb4591385445c188ccb3f09oven-sh/setup-bunv20c5077e51419868618aeaa5fe8019c62421857d6release-plz/actionv0.566b324fd6c72d05d2a08568492ecdd62bfb8a62bNotes on resolution:
dtolnay/rust-toolchain@1.97.1is a branch, not a tag (git/ref/tags/1.97.1404s; resolved viagit/ref/heads/1.97.1).release-plz/action@v0.5is an annotated tag; dereferenced throughgit/tags/<sha>to its commit.Swatinem/rust-cache@6323deb1...was already SHA-pinned before this PR (used throughoutrust.yml,personal-node.yml, etc.) — left untouched, re-verified below.107 lines of
uses:touched across 11 files.Works
Listing script (read-only) — zero third-party/first-party
uses:lines left on a tag or branch:Every SHA in the final workflow files resolves against
gh api repos/OWNER/REPO/commits/SHA(all 200, includingSwatinem/rust-cachewhich was already pinned):actionlint 1.6.25: no new findings. Pre-existing, unrelated findings only (shellcheck style/info notes indocker.ymlandrelease.yml, the knownubuntu-24.04runner-label note inlogship.yml's hosted-compose job, none touching auses:line).No changeset system in this repo (release-plz for Rust, no
.changeset/check workflow) — nothing to add.CI note: the logship
hosted-compose-proofjob fails at random on UDP burst loss (TC-3525); it failed that way at a2892d8 and was rerun once.Details: TC-3512