Repository navigation
Pin actions to commit SHAs - #88
Merged
Merged
Conversation
A caller pinning the reusable workflow by SHA froze the workflow file but not the actions it uses: `actions/checkout@v7`, `actions/upload-artifact@v7`, and `ruby/setup-ruby@v1`, which is a branch, all moved, and they run in the job that can request a RubyGems token. Pin every external action and reusable workflow in both interfaces and this repository's workflows to the commit of its latest release, with the version as a comment, and let Dependabot propose updates. A spec rejects unpinned references. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Gr21j6KD4oksnhmZ5u3pr
dblock
force-pushed
the
dblock/pin-actions
branch
from
November 20, 2026 23:18
8b63f97 to
a7d436c
Compare
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
From the review of ruby-grape/grape#3078: pinning the reusable workflow by SHA freezes the workflow file, but not the actions it uses. At
v0.7.0the release job runsactions/checkout@v7,ruby/setup-ruby@v1, andactions/upload-artifact@v7by tag, andruby/setup-ruby@v1is a branch (there is nov1tag). That job can request a RubyGems token..github/workflows/release.yml, the compositeaction.yml, and this repository's own workflows:actions/checkoutv7.0.1 (3d3c42e)ruby/setup-rubyv1.343.0 (be3c7df)actions/upload-artifactv7.0.2 (cf430e0)coverallsapp/github-actionv2.3.8 (8d6379e)danger/danger-pr-commentreusable workflows v0.3.0 (645e89b).github/dependabot.ymlfor weekly GitHub Actions updates, which update the SHA and the version comment together.uses:outside local./workflows isn't a 40-character SHA with a version comment.release.ymlby SHA with the tag as a comment.Validation
bundle exec rake: RuboCop (including spellcheck) and all unit and integration specs pass.bundle exec rake buildandactionlintpass.gh api repos/<owner>/<repo>/commits/<latest release tag>.This PR was written by an AI (Claude) acting on behalf of @dblock.
🤖 Generated with Claude Code
https://claude.ai/code/session_011Gr21j6KD4oksnhmZ5u3pr