Commit dc4e7cc
committed
ci: publish to batch-archive with a scoped bee-runner App token
The GHA_PAT_BASIC org secret was never shared with this repo, so
`Checkout batch-archive` resolved its token to empty and failed with
"Input required and not supplied: token".
Rather than widen that PAT (contents:write across 16 repos, tied to a
personal account), mint a token from the bee-runner GitHub App, which is
already installed org-wide with contents:write. The token is scoped to
batch-archive alone, narrowed to contents:write, and expires in ~1h.
Because of that expiry it is minted after the export, not at checkout —
the export can easily outrun an hour. batch-archive is public, so the
initial clone needs no App token at all; it uses GITHUB_TOKEN with
persist-credentials: false so nothing long-lived sits in .git/config
while the export runs, and the final push carries the App token itself.1 parent 06bd66d commit dc4e7cc
1 file changed
Lines changed: 26 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| |||
151 | 156 | | |
152 | 157 | | |
153 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
154 | 172 | | |
155 | 173 | | |
156 | 174 | | |
| 175 | + | |
157 | 176 | | |
158 | 177 | | |
159 | 178 | | |
| |||
193 | 212 | | |
194 | 213 | | |
195 | 214 | | |
196 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
197 | 218 | | |
0 commit comments