Skip to content

ci: pin GitHub Actions to commit SHAs - #7

Merged
bnsoni merged 1 commit into
mainfrom
ci/pin-actions-to-sha
Nov 6, 2026
Merged

bnsoni merged 1 commit into
mainfrom
ci/pin-actions-to-sha

Conversation

@bnsoni

@bnsoni bnsoni commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Pins every action in this repo's active workflows to a full commit SHA, with the version kept as a comment:

uses: actions/checkout@v4
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0

A tag like v4 can be moved to different code at any time, including by someone who takes over the action's repo. A commit SHA can't be moved.

No change in behaviour. Each SHA is the commit its existing tag points to today, so the same code runs and no version changes. Old versions stay as they are; upgrading them is a separate change.

  • Each SHA was resolved two ways (git ls-remote and the GitHub API) and both agreed.
  • Only uses: lines changed, and every changed file parses to the same YAML as before apart from the refs.
  • actionlint reports nothing new.

Scope: the workflows that ran in the last 30 days, plus the reusable workflows and composite actions they call: 2 references in 2 files. Our own iblai/* actions and reusable workflows keep their tags and branches.

Keeping the pins current: this repo has no Dependabot config, so the pins stay where they are until someone updates them.

Merging: os, lms and web-frontend use this action at @v1, so the pins reach them only after a release (v1.6.1) moves v1. Nothing changes for callers until then.

🤖 Generated with Claude Code

Each action is pinned to the commit its current tag points to, with the
version kept as a comment, so the same code runs. Covers the workflows
that ran in the last 30 days and the reusable workflows and composite
actions they call. Our own iblai/* actions keep their tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bnsoni
bnsoni merged commit 7e08abf into main Nov 6, 2026
1 check passed
@bnsoni
bnsoni deleted the ci/pin-actions-to-sha branch November 6, 2026 15:14
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