Skip to content

ci: pin third-party actions to exact commit SHAs - #65

Open
justinbanon-agent wants to merge 1 commit into
mainfrom
ci/pin-third-party-actions
Open

justinbanon-agent wants to merge 1 commit into
mainfrom
ci/pin-third-party-actions

Conversation

@justinbanon-agent

Copy link
Copy Markdown
Collaborator

What this does

Pins 1 third-party action reference in 1 file to the exact commit its tag points to today, with the version in a comment. This is option 2 from bosonprotocol/core-components#1046.

  • No behaviour change: each SHA is the commit the tag or branch resolves to today, so the runs use the same code as now.
  • Why: a tag such as @v4 can be moved by its publisher; a commit SHA cannot. That is what happened with tj-actions/changed-files in March 2025.
  • Where the SHAs come from: the upstream repository's own tags (annotated tags resolved to the commit, not the tag object).

Pinned

File Line Was Now Version
.github/workflows/lint-pr.yaml 19 amannn/action-semantic-pull-request@v5.5.2 amannn/action-semantic-pull-request@cfb6070 v5.5.2

Full SHAs are in the diff.

Left as they are

Nothing: every third-party reference in this repo is now pinned.

How to check

On this pull request, these workflows start (no "workflow file issue") and pass:

  • Lint PR: the title check.

In each job's "Set up job" log, the "Download action repository" lines show the pinned SHAs.

Once this is green, the organisation's "any version" entries for these actions can be swapped for the exact SHAs, but only for an action that no other repo still uses by tag.

Rollback: revert this merge.

Prepared by Claude for Justin; Ludo reviews and merges. Refs bosonprotocol/core-components#1046.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant