Skip to content

feat(lockfiles): confirm actions.lock with gh-actions-lock's online check - #394

Merged
sweepies merged 1 commit into
mainfrom
feat/actions-lock-online-check
Nov 23, 2026
Merged

sweepies merged 1 commit into
mainfrom
feat/actions-lock-online-check

Conversation

@sweepies

@sweepies sweepies commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

The Count proves a regenerated actions.lock with gh-actions-lock's offline --verify-local pass and its own read-back. Neither can see what a remote composite action uses at its locked commit. So when gh-actions-lock 0.4.1 dropped such an edge (github/gh-actions-lock#272), the incomplete lock passed both checks and was published. It happened on this repository's own self-pin bump, where the tool's online check rejected the lock with incomplete-lockfile.

After the offline pass, updates and maintenance now run the tool's read-only online check over the same workflows: --no-interactive --no-fix --ignore-local-actions --json=valid,findings. Its exit status and findings go through the existing check and classify:

  • a blocking finding holds the run with its reason;
  • a retryable one (GitHub unreachable or rate-limited) makes it wait.

It uses the session's existing token and adds no new access.

  • Fake-tool tests now expect the third run and check its flags. A new test covers an incomplete-lockfile finding and a retryable one, and confirms neither publishes the lock.
  • The real-tool cassettes are re-recorded with the extra requests: 14 real tests pass on replay, and the fixtures scan is clean.
  • cargo test -p patchula-tools: 213 passed. Clippy: clean.
  • The lockfiles guide is updated.

View guided diff Turn on auto-fix

@sweepies
sweepies changed the base branch from chore/gh-actions-lock-0.5.1 to main November 23, 2026 20:12
…heck

The offline `--verify-local` pass checks that every ref in a workflow has
a lock entry. It cannot see what a composite action uses at its locked
commit, so a lock missing one of those edges passed it and was published
(gh-actions-lock 0.4.1 wrote such locks, github/gh-actions-lock#272).
After the offline pass, updates and maintenance now run the tool's
read-only online check (`--no-fix`) over the same workflows. A finding
holds the run with its reason, and an unreachable GitHub makes it wait.
@sweepies
sweepies force-pushed the feat/actions-lock-online-check branch from 986838a to 96b4cab Compare November 23, 2026 20:12
@sweepies
sweepies merged commit 0e00b13 into main Nov 23, 2026
13 checks passed
@sweepies
sweepies deleted the feat/actions-lock-online-check branch November 23, 2026 20:32
@sweepies-ops sweepies-ops Bot mentioned this pull request Nov 23, 2026
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