Skip to content

fix(ci): load release gate from event-bound main - #75

Merged
Tom409114 merged 1 commit into
mainfrom
fix/release-readiness-base-tip
Sep 1, 2026
Merged

fix(ci): load release gate from event-bound main#75
Tom409114 merged 1 commit into
mainfrom
fix/release-readiness-base-tip

Conversation

@Tom409114

Copy link
Copy Markdown
Owner

Why

An existing release PR can retain an older pull_request.base.sha. The first live readiness run therefore checked out a base commit that predated the gate script and failed with MODULE_NOT_FOUND instead of evaluating publication controls.

Fix

  • let pull_request_target and pinned checkout v7 use the event-bound trusted default-branch ref and SHA
  • never override checkout with PR base/head refs
  • structurally enforce no checkout ref and persist-credentials: false

Verification

  • 56 test files: 627 passed, 6 skipped
  • TypeScript typecheck
  • Biome (170 files)
  • actionlint 1.7.12
  • independent review: Ready

After merge, PR #66 will be refreshed and must fail for the expected publication-readiness switches, not for a missing module.

@Tom409114
Tom409114 merged commit 670945f into main Sep 1, 2026
18 checks passed
@Tom409114
Tom409114 deleted the fix/release-readiness-base-tip branch September 1, 2026 01:15
This was referenced Sep 1, 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