Skip to content

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

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 2 third-party action references in 2 files to the exact commit each 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/deploy-preview.yaml 40 marocchino/sticky-pull-request-comment@v2 marocchino/sticky-pull-request-comment@7737449 v2.9.4
.github/workflows/deploy_reusable.yaml 245 cloudflare/wrangler-action@v3 cloudflare/wrangler-action@9acf94a v3.15.0

Full SHAs are in the diff.

  • marocchino/sticky-pull-request-comment: v2 is a branch; its head is the commit of release tag v2.9.4.

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:

  • Deploy PR preview: the sticky preview comment and the Cloudflare deploy (wrangler).

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

After the merge to main:

  • Deploy to testing on main: wrangler.

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>
@github-actions

Copy link
Copy Markdown

This branch was successfully deployed

1 active deployment
testing — 2451a230 Deployed Oct 21, 2026 by justinbanon-agent via deploy / testing #7
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