ci: pin all GitHub Actions to commit SHAs - #83
Merged
Merged
Conversation
Tags are mutable; a maintainer (or an attacker with maintainer access) can retag an existing version to point at new code without the consumer's workflow file changing. Pinning to a full 40-char commit SHA makes the referenced code immutable while a trailing "# vX.Y.Z" comment keeps the human-readable version visible and lets Dependabot (already configured for github-actions in .github/dependabot.yml) open PRs updating both the SHA and the version comment together when a new release ships. Covers all 19 action use-sites across ci.yml, deploy-docs.yml, and release.yml. Verified every SHA against the action repo's own tag ref before committing. Refs: https://docs.github.com/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#using-third-party-actions
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
Pin every external action in CI, documentation deployment and release workflows to a verified full commit SHA. This includes the updated action versions from #117 and the Tasksmith jobs added since this PR was opened. Keep version comments so Dependabot can maintain the pins.
Disable uv dependency caches throughout the release workflow, including manual release runs. This preserves setup-uv v10's protection for publishing jobs instead of overriding it with
enable-cache: true.Test plan
b07a52f: Python 3.12/3.13/3.14, recipe and coding-runtime contracts, lint, documentation, and distribution build.actionlintpassed.Out of scope
No package version change, release publication or dataset changes.