fix(security): pin 25 action refs to SHAs and add a token permissions floor - #96
Merged
Merged
Conversation
… floor All 25 third-party action refs ran from mutable tags. A tag is repointable by whoever controls the action repo, so the workflows trusted a moving target. Each now pins a commit SHA with the version kept in a trailing comment. 2 workflow(s) had no top-level permissions block, so any job without its own block inherited the repository default. contents: read is now the floor. Jobs that already declared their own permissions keep them, so nothing loses a capability it was using. Workflow-only, no source or test changes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XbDBXDWWvMFa7c2jGgyq9t
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.
Part of a proactive security sweep across agentrust-io.
Action pinning (25 refs)
Every third-party action ran from a mutable tag. A tag can be repointed by whoever controls the action repo, so these workflows trusted a moving target. Each ref now pins a commit SHA with the version kept in a trailing comment, so intent stays readable and Dependabot can still propose bumps.
Token scope
2 workflow(s) had no top-level
permissions:block, so any job without its own block inherited the repository default. Addedcontents: readas the floor.Checked before applying: every job in this repo that needs more than read already declares its own job-level block, which overrides the top-level floor. No job loses a capability it was using.
Workflow-only, no source or test changes. Clears the
PinnedDependenciesIDandTokenPermissionsIDalerts that make up the bulk of this repo's open code-scanning findings.🤖 Generated with Claude Code
https://claude.ai/code/session_01XbDBXDWWvMFa7c2jGgyq9t