Repository navigation
Description
Summary
gh actions-lock does not lock remote reusable workflow calls (jobs.<id>.uses: owner/repo/.github/workflows/<file>.yml@ref). It skips them without a finding, so a workflow whose only external ref is a reusable workflow is recorded as [] and --verify passes.
The lockfile docs say a lockfile pins "every action (including transitive dependencies) and reusable workflow your workflows depend on". The CLI does not do this at the moment.
Based on this comment #129 (comment) there seems to be no immediate plan to support this, but I think it is still valuable to track this. As the activity stream of that PR shows quite an interest of the community for such a feature.
This part is generated by Opus 5.5 based on the debugging session I had with it:
Reproduction
gh actions-lock v0.2.0, with this workflow:
# .github/workflows/osv.yml
on: pull_request
jobs:
scan-pr:
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@v2.6.0$ gh actions-lock --no-interactive
$ gh actions-lock --verify
All N workflows valid# .github/workflows/actions.lock
workflows:
.github/workflows/osv.yml: []Expected: the call is resolved and locked like a step-level action, e.g. google/osv-scanner-action@v2.6.0 with its commit SHA. Alternatively, --verify reports it as unlocked.
Actual: the ref is dropped and the tag stays unpinned with no warning.
Cause
ExtractActionRefs passes job-level uses: values to parserlock.ParseActionRef, which returns nil for any path under .github/workflows/. The nil result is discarded. actions-lockfile already provides ParseReusableWorkflowRef, but gh-actions-lock does not call it.
Why it matters
- Teams moving to the lockfile change step refs to tags and let the lockfile hold the SHAs. Reusable workflow calls cannot follow that pattern, so they must stay SHA-pinned in YAML. Workflows then mix two pinning styles, and tools such as Renovate, Dependabot and zizmor need different rules for each.
- If someone converts a reusable workflow call to a tag, assuming the lockfile covers it, nothing pins it.
--verifystill passes, so the gap is not visible, even though it is documented.
Request
Please lock remote reusable workflow refs at job level, resolved to the commit of the repository that defines them. Their own action dependencies would stay covered by that repository's lockfile, as the docs describe. If this is out of scope, --verify and --no-fix should at least emit a finding for unlocked job-level refs, and the README Limitations section should mention it.
Related
- v0.1.6: job-level reusable-workflow
uses:refs are invisible β missed desync, falsestale, and fix mode prunes a correct entryΒ #129: closed with "we don't plan to pin job-level uses at this time" - Track reusable workflow calls in lock coverageΒ #161: open community PR, "Track reusable workflow calls in lock coverage"
- SHA-pinning policy rejects locked actions when invoked through a reusable workflowΒ #169: SHA-pinning policy and reusable workflows (fixed on the backend)
Activity
woodruffw commentedon Oct 18, 2026
I produced an MRE for this here:
woodruffw-experiments/actions-lockfile-experiments#9
(I ran into this in a similar way: the current docs suggest that the top level of a reusable workflow will be locked, and only transitive dependencies are a current limitation. But FWICT the top level is not locked either, so both can remain unpinned even in the presence of a lockfile that otherwise covers a workflow.)
Fail closed on remote snapshots and unenforced reusable calls
Fail closed on remote snapshots and unenforced reusable calls
Fail closed on remote snapshots and unenforced reusable calls
Fail closed on remote snapshots and unenforced reusable calls
Fail closed on remote snapshots and unenforced reusable calls
Fail closed on remote snapshots and unenforced reusable calls
nodeselector commentedon Oct 20, 2026
This is an error in our docs, sorry for the confusion. In the short-term I plan on having the CLI "sha pin" reusable workflows when users request it in the cli but without including it in the lockfile. There are some things that we need to sort out in the actions and especially in the reusable workflows space around "internal" usage where following a mutable ref is desired (different trust boundaries). Related: #194
[-]Lock remote reusable workflow calls (jobs.<id>.uses)[/-][+]Feature request: Lock remote reusable workflow calls (jobs.<id>.uses)[/+]ci-score: name unread content on the card, resolve callee inputs, tigβ¦
ci-score: checks no longer pass on workflow content the scan never reβ¦
Replace Dependabot with Renovate
Replace Dependabot with Renovate
Replace Dependabot with Renovate
Replace Dependabot with Renovate
Replace Dependabot with Renovate
fix(ci): regenerate actions.lock for the v7-era pins merged in #61 (#64)
Close the naming-gate hole; make the Julia CI gates real (refs #68) (#72
ci: keep reusable lock workflow pinned by SHA