Repository navigation
ci: pin actions and scope release token writes - #1
Open
alex-mextner wants to merge 2 commits into
Open
alex-mextner wants to merge 2 commits into
alex-mextner wants to merge 2 commits into
Conversation
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.
Why
The CI and Windows smoke workflows inherited default token permissions, and the release workflow granted repository write access to its build jobs. Mutable action tags also blocked full-SHA enforcement.
Change
Pin all 54 mutable remote action references across the three workflows to the exact GitHub-resolved commits. Declare
contents: readat workflow level and retaincontents: writespecifically for the release job. Keep every trigger, matrix, job dependency, command, artifact name and separate deployment-key reference unchanged.The pinned Rust action at
39008827e6b4319a349e9a42dfc90579dd25f1caexplicitly declaresinputs.toolchain.default: stable; pinning therefore retains the existing toolchain selection. The canonical Rig pin plan records the original references, complete SHAs and source endpoints.Validation
Exact-byte verification confirmed only the planned action-reference and permission changes. No mutable remote references or implicit workflow permissions remain. Three independent deep/xhigh review roles completed with no actionable findings. Normal commit gates passed.
The repository's established hosted PR CI runs its build and test matrix; no full Cargo build or test suite was started manually. Tag-only release publication remains in the existing release workflow and was not triggered for this change.
Rollout task: https://git.hyperide.ai/ultrabricks/rig-cli/issues/980