Repository navigation
feat(actions): actions.lock is regenerated with the update, or the update is held - #303
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | c8ac31e | Commit Preview URL Branch Preview URL |
Nov 14 2026, 01:50 AM |
sweepies
force-pushed
the
feat/actions-lock
branch
from
November 14, 2026 01:14
2f24fdc to
d2a3c2f
Compare
…date is held A repository that already commits .github/workflows/actions.lock gets it regenerated in the same update commit when a listed workflow's action moves: gh-actions-lock runs over the edited listed workflows only, with --no-onboard and --no-narrow always set. The tool never locks a local ./ composite, so a bump inside one makes no run and publishes as before; a $/ composite is relocked under exactly the listed workflows that call it, and a caller that cannot be resolved holds the update. The tool gets a scoped installation token on the App server and the run's own token elsewhere, github.com only, gh and git off its PATH; --verify-local and a lockfile read-back prove the result before the commit opens. Workflows the lock lists get no new step-level SHA pins, since the lock itself records the commit; existing pins still move and reusable workflows still pin. A moved pin stays a pin: --no-narrow leaves a SHA ref as written and the lock records it under that SHA. A private action, a corrupt lockfile or an onboarding attempt holds the update instead of publishing. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
sweepies
force-pushed
the
feat/actions-lock
branch
from
November 14, 2026 01:49
d2a3c2f to
c8ac31e
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A repository that already commits
.github/workflows/actions.lockgets it regenerated in the same commit as the action update, or the update is held with the tool's reason. This is PR 3 of the actions.lock work, after #300 (the tool pin and the offline proxy fixture) and #302 (the scoped token).Behaviour change
Ecosystem::Actionsjob is planned when the lock exists and the dependency is a step-level action in a.github/workflows/workflow. Reusable workflows, images,.forgejoand.giteaworkflows make no job../…is never locked by the tool, so bumping an action inside it publishes without touching the lock. One called with the tool's$/…syntax is relocked under each listed workflow that calls it, nested composites included, resolved the way the tool resolves them. If a caller can't be resolved (a listed workflow that doesn't parse, say), the update is held.gh-actions-lock --no-interactive --no-onboard --no-narrow --ignore-local-actionsruns over the edited workflows the lock lists, plus the listed workflows that call an edited$/composite. The tool gets a whitelisted environment:GH_HOST=github.com,ghandgitoff its PATH, andCI=false.--verify-localmust pass, and a read-back must find each editedowner/repo@refunder its workflow with the edited SHA. Onlyactions.lockmay change.GitHub being unreachable or rate-limited makes the update wait for the next run instead.
actions_lock_specis gone.Tests
pin_suppressedcovers its four cases.actions-lock-update.json(publicactions/checkout, token redacted, the fixtures scan is clean).corpus:snapshotis unchanged: no corpus repository has a lock. Transcripts gain one line for the new test.Follow-ups
--relockpicks up (PR 4: lockfile maintenance).fresh-tagwarning is not shown.$/composite reached through a symlinked action directory is missed at planning, so its bump publishes without a relock. GitHub's tree lists the symlink as one entry. The fix is to treat it as unresolvable and hold../-only ones. This fails closed and the reason names the file, but it could be narrowed to the composites the broken chain can reach.Review fixes
jobs.<id>.uses).Azure/login@v2works.workflows:map is read strictly to the tool's grammar, and only plain.github/workflows/<name>.y(a)mlkeys reach the tool.actions.lock(--relockcomes in PR 4)../composite and does relock a$/composite under its caller.--no-narrow, an existing SHA pin in a listed workflow is left as written and recorded in the lock under that SHA. So existing pins keep moving.