Repository navigation
Conversation
A tag can be moved to other code; a commit SHA cannot. The release job runs these actions with contents: write and the crates.io token in reach, so each is pinned to the commit its tag points at today, with the version beside it. dtolnay/rust-toolchain is pinned to its stable branch's head, whose default toolchain is stable. Dependabot updates the pins weekly in one PR.
This branch has not been deployed
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.
Third-party actions referenced by tag (
@v4,@stable) run whatever the tag points to today, so a compromised upstream can push new code under the same tag. The release job runs these actions withcontents: writeand the crates.io token in reach.uses:across the 5 workflows is now pinned to the commit its tag currently resolves to, with the exact version in a comment (actions/checkout@11d5960… # v4.4.0). Same code as today, so behaviour shouldn't change.dtolnay/rust-toolchainis pinned to itsstablebranch's head. That commit'stoolchaininput defaults tostable, so nowith:change is needed. Dependabot can't bump a branch pin, so update this one by hand occasionally..github/dependabot.yml: a weekly grouped PR keeps the pinned SHAs current. Rust security updates come from Dependabot security updates, which are now enabled in settings.After this merges, Settings → Actions → General → "Require actions to be pinned to a full-length commit SHA" can be turned on, so new unpinned actions get rejected.