Skip to content

fix(ci): use PAT for release checkout to bypass branch protection on formula push#35

Merged
seanseannery merged 1 commit intomainfrom
fix/release-homebrew-pr
Mar 7, 2026
Merged

fix(ci): use PAT for release checkout to bypass branch protection on formula push#35
seanseannery merged 1 commit intomainfrom
fix/release-homebrew-pr

Conversation

@seanseannery
Copy link
Owner

@seanseannery seanseannery commented Mar 7, 2026

Key Changes

  • Use OPSFILE_RELEASE_PAT token in the release job's checkout step so the Homebrew formula push to main can bypass branch protection

Why do we need this?

Branch protection on main requires changes go through a PR. The default GITHUB_TOKEN doesn't have permission to push directly. Using a PAT with Contents write access allows the release automation to push the formula update directly.

New modules or other dependencies introduced

None — requires the OPSFILE_RELEASE_PAT repo secret (already configured).

How was this tested?

Will be validated on the next release dispatch.

@seanseannery seanseannery force-pushed the fix/release-homebrew-pr branch from f563214 to b99efd7 Compare March 7, 2026 16:13
@seanseannery seanseannery changed the title fix(ci): create PR for Homebrew formula update instead of pushing to main fix(ci): use PAT for release checkout to bypass branch protection on formula push Mar 7, 2026
@seanseannery seanseannery merged commit aa7fc8d into main Mar 7, 2026
4 checks passed
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