Skip to content

chore(ci): lock GitHub Actions dependencies with actions.lock - #17

Merged
samantha-earthmover merged 1 commit into
mainfrom
samantha/chore/actions-lockfile
Nov 3, 2026
Merged

samantha-earthmover merged 1 commit into
mainfrom
samantha/chore/actions-lockfile

Conversation

@samantha-earthmover

Copy link
Copy Markdown
Contributor

Summary

Adds .github/workflows/actions.lock (GitHub Actions workflow lockfiles, GA since 2026-10-28), generated with gh actions-lock. The runner now runs exactly the commits in the lockfile, including transitive dependencies of composite actions, which SHA pins in workflow files never covered. The tool replaces @<sha> # vX pins with the full semver tag for the same commit (e.g. actions/checkout@v7.0.1), so some stale # vX comments now read as major-version jumps; the commit is unchanged.

Context

Every SHA pinned on main was checked against the lockfile: apart from the changes listed above, each locked commit is the commit that runs today. gh actions-lock --verify passes.

After this merges, add or change a uses: and then run gh extension install github/gh-actions-lock && gh actions-lock to update the lockfile. If the lockfile has no entry for a dependency, the job fails at start. Dependabot updates the lockfile in its own action-bump PRs.

Risk level

Low. Commits that run are unchanged except where listed. The main risk is a workflow that only runs on a schedule, a release or a dispatch failing at job start if the runner rejects a pin. Rollback is a revert.

[This is Claude Code on behalf of Samantha Hughes]

🤖 Generated with Claude Code

Onboard every workflow to a GitHub Actions workflow lockfile with
`gh actions-lock`. The lockfile pins each direct and transitive action
dependency to a commit, so SHA pins in the workflow files become tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@samantha-earthmover
samantha-earthmover merged commit 34ab11d into main Nov 3, 2026
5 checks passed
@samantha-earthmover
samantha-earthmover deleted the samantha/chore/actions-lockfile branch November 3, 2026 20:13
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