Skip to content

Lock workflow dependencies with gh actions-lock - #169

Merged
PiotrRogulski merged 1 commit into
mainfrom
claude/workflow-lockfile
Oct 23, 2026
Merged

PiotrRogulski merged 1 commit into
mainfrom
claude/workflow-lockfile

Conversation

@PiotrRogulski

Copy link
Copy Markdown
Member

This adopts workflow dependency lockfiles, which are in public preview.

  • .github/workflows/actions.lock, written by gh actions-lock v0.3.0, pins every action that the six workflows use to a commit. That includes the actions that the mobile-tools composite actions use (actions/checkout@v4, mikefarah/yq@master, softprops/action-gh-release@v2, subosito/flutter-action, actions/cache@v5 and setup-dart v1.7.2), which our SHA pins never covered.
  • The uses: lines name full release tags instead of commit SHAs with a version comment. The extension asks for tags, and GitHub's docs say that SHA pinning isn't needed once a workflow is locked. The CLAUDE.md rule on pinning says so now.
  • The extension rewrote pub-release to @v1, a mobile-tools tag that only happens to point at the same commit. I changed it to @pub-release-v1 by hand.
  • The new lockfile workflow runs gh actions-lock --verify on pull requests that change .github/workflows/, as the enforcement guide suggests. I left out the guide's second job, which regenerates the lockfile on push and commits it.
  • .gitattributes marks the lockfile as linguist-generated, so its diff is collapsed in pull requests.

It also bumps every action to its latest release: actions/checkout to v7.0.1, dart-lang/setup-dart to v1.8.1 and pana-score to pana-score-v1.3. pub-release-v1 is already the latest. setup-dart 1.8.0 adds a problem matcher for dart analyze, so analyzer issues now show up as annotations.

There is no changelog entry, because users of ciach don't see this change.

Left to do by hand: turning on the Require lockfile policy in the repository settings, and Dependabot for GitHub Actions, which GitHub recommends so that its version bumps also update the lockfile.

Testing

gh actions-lock --verify prints "All 6 workflows valid" on this branch. The lockfile workflow runs on this pull request, because it changes .github/workflows/.

🤖 Generated with Claude Code

Pin every action that the workflows use, including the actions that
composite actions use, in .github/workflows/actions.lock, and reference
actions by their full release tags. A new lockfile workflow runs
`gh actions-lock --verify` on pull requests that change a workflow.

Also bump actions/checkout to v7.0.1, dart-lang/setup-dart to v1.8.1
and the pana-score action to pana-score-v1.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PiotrRogulski
PiotrRogulski merged commit db40a97 into main Oct 23, 2026
7 checks passed
@PiotrRogulski
PiotrRogulski deleted the claude/workflow-lockfile branch October 23, 2026 20:16

This branch was successfully deployed

1 active deployment
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.

2 participants