Skip to content

Upgrade straggler checkout refs and guard against action major drift - #81

Merged
austenstone merged 1 commit into
mainfrom
chore/checkout-v7-stragglers
Aug 20, 2026
Merged

Upgrade straggler checkout refs and guard against action major drift#81
austenstone merged 1 commit into
mainfrom
chore/checkout-v7-stragglers

Conversation

@austenstone

Copy link
Copy Markdown
Owner

What

Four actions/checkout@v5 refs survived on main and are now @v7, plus a CI guard so this class of drift can't come back silently.

Why

The version-spec, version-pin-drift, config-legacy, and config-invalid jobs were authored in #77 alongside the bulk @v7 upgrade in #78. The two landed in parallel, so the new jobs never got swept — they shipped on @v5.

That matters beyond tidiness: a stale major silently reintroduces the Node 20 deprecation warning the upgrade existed to remove. A real regression wearing a green checkmark, which is the same failure shape as the labeler bug in #78.

The guard

New action-major-drift job fails on any outdated first-party action major, scoped to uses: declarations specifically — an unscoped pattern matched the guard's own allowlist string and passed only by accident.

Verified in both directions:

  • Current tree -> no matches, passes
  • Injected checkout@v5 -> correctly fails, reporting the offending file and line

Result

checkout@v5 refs: 4 -> 0. All 31 checkout refs on @v7, 32 jobs total.

Closes #50
Closes #66

The version-spec, version-pin-drift, config-legacy, and config-invalid jobs
were authored alongside the bulk @v7 upgrade and missed it, leaving four
actions/checkout@v5 refs on main. A stale major silently reintroduces the
Node 20 deprecation warning the upgrade was meant to remove, so add a CI
job that fails on any outdated first-party action major.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 68570e12-150a-4762-bccc-6af2377d8531
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