Commit 9af787b
fix(ci): use GitHub App token for semantic-release to bypass branch ruleset (#32)
The release workflow was failing because GITHUB_TOKEN (github-actions[bot])
cannot push directly to main when branch protection requires pull requests.
On GitHub Free, the built-in GitHub Actions integration cannot be added as
a bypass actor in rulesets.
Switch to authenticating via the ambient-code GitHub App using
actions/create-github-app-token, which generates a short-lived token that
can bypass the "Protect main" ruleset.
Requires repo secrets: RELEASE_APP_ID, RELEASE_APP_PRIVATE_KEY
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8301653 commit 9af787b
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
| 34 | + | |
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
| |||
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
43 | | - | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| |||
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
63 | | - | |
| 71 | + | |
0 commit comments