Commit f509f58
Switch autoversion to a GitHub App identity (#5)
* Switch autoversion to a GitHub App identity
The repo's `main` ruleset blocks direct pushes; default GITHUB_TOKEN
cannot be granted ruleset bypass. This wires autoversion.yml to:
- Mint an installation token from a GitHub App (see README setup)
- Check out with that token so `git push` uses the app identity
- Commit as <app-slug>[bot] with the verified noreply email format
(<user_id>+<slug>[bot]@users.noreply.github.com)
Once the app is installed on the repo and added to the ruleset's
bypass actors, scheduled and dispatched runs can push directly.
Requires repo secrets HERMIT_APP_ID and HERMIT_APP_PRIVATE_KEY.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Scope autoversion job to hermit-autoversion environment
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 70404a9 commit f509f58
1 file changed
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
12 | 23 | | |
| 24 | + | |
| 25 | + | |
13 | 26 | | |
14 | 27 | | |
15 | 28 | | |
16 | 29 | | |
17 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
18 | 33 | | |
19 | 34 | | |
20 | 35 | | |
| |||
23 | 38 | | |
24 | 39 | | |
25 | 40 | | |
26 | | - | |
27 | | - | |
| 41 | + | |
| 42 | + | |
28 | 43 | | |
29 | 44 | | |
0 commit comments