Skip to content

block releases when main's branch protection drifts#238

Merged
iicky merged 2 commits into
mainfrom
feat/preflight-branch-protection
Jun 19, 2026
Merged

block releases when main's branch protection drifts#238
iicky merged 2 commits into
mainfrom
feat/preflight-branch-protection

Conversation

@iicky

@iicky iicky commented Jun 18, 2026

Copy link
Copy Markdown
Owner
  • read main's full branch protection in release preflight and assert the baseline: enforce_admins on, force-push and deletion off, required checks include Test/VHS/Lint (extra checks fine, a dropped one is drift)
  • fail the release on drift or an unreadable protection config, replacing the old check that only saw protected: true
  • mint a short-lived GitHub App token (administration/contents/pull-requests read) for the read, since GITHUB_TOKEN can't carry the administration scope
  • read the App credentials from the PREFLIGHT_APP_ID and PREFLIGHT_APP_PRIVATE_KEY secrets — preflight fails closed until the App is installed on iicky/murk

@iicky iicky merged commit 5ba7c9d into main Jun 19, 2026
21 checks passed
@iicky iicky deleted the feat/preflight-branch-protection branch June 19, 2026 00:12
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