Skip to content

Lock GitHub Actions dependencies - #358

Merged
tnkuehne merged 2 commits into
mainfrom
actions-lockfile
Nov 23, 2026
Merged

tnkuehne merged 2 commits into
mainfrom
actions-lockfile

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Adds .github/workflows/actions.lock, generated by gh actions-lock v0.5.1. It covers all 7 workflows.
  • Switches every uses: reference from a bare commit SHA to its exact release tag (for example actions/[email protected]). The locked commits match the SHAs pinned before, so runs execute the same code.
  • Adds an actions-lockfile job to Check that runs gh actions-lock --verify. The required source-and-integration check now also fails while the lockfile is stale.
  • Adds a note to docs/development.md on regenerating the lockfile after workflow changes.

Why

Runs execute the commits recorded in the lockfile, including transitive action dependencies, and GitHub checks at job start that each locked repository is still the one that was locked. Once this is merged, the repository's Require lockfile Actions policy can be set to Active so that a workflow that isn't onboarded cannot run.

Verification

  • gh actions-lock --verify --fail-on-warning: all 7 workflows valid.
  • Each commit in the lockfile matches a SHA pinned before this change.
  • oxfmt --check passes on the changed files.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new actionable issues remain.

Summary

Adds an Actions lockfile, release-tag references, and a required lockfile check.

  • Workflow actions use named releases tied to recorded commits.
  • The required pull-request check waits for action lock verification.

Reviews (2) · Last reviewed commit: "Cover the lockfile gate in the CI workfl..." · Reviewed by Greptile

Adds .github/workflows/actions.lock and switches every uses: reference
from a bare commit SHA to its exact release tag. The locked commits are
the commits the workflows pinned before, so runs execute unchanged code.
The Check workflow now verifies the lockfile, and the required
source-and-integration check fails while it is stale.
Comment thread .github/workflows/check.yaml Resolved
The pull request gate now needs the lockfile job, and a lockfile change
alters the action code that the CLI publication workflows run, so it
selects canary publication like a change to those workflow files.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs e82fc12 Nov 23 2026, 07:21 PM

@tnkuehne
tnkuehne merged commit 00ec0f0 into main Nov 23, 2026
15 of 16 checks passed
@tnkuehne
tnkuehne deleted the actions-lockfile branch November 23, 2026 19:22
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