Commit 5136b32
committed
fix(ci): pass GITHUB_TOKEN to Build CLI step to bypass anonymous quota
scripts/download-assets.mts (via packages/build-infra/lib/github-releases.mts)
queries the GitHub releases API for binject / node-smol / iocraft
during the cli build. The script reads GH_TOKEN / GITHUB_TOKEN to
authenticate, but the Build CLI step in both unit-tests and e2e jobs
never set either, so calls went out anonymously, hit the 60-req/hr
public quota, and returned 403 ("Failed to fetch releases: 403").
Expose secrets.GITHUB_TOKEN to both Build CLI steps. Authenticated
calls share a 1000-req/hr per-job bucket. permissions: contents: read
is already declared on both jobs, which is what the asset reads need.1 parent 7af5ef4 commit 5136b32
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
245 | 252 | | |
246 | 253 | | |
247 | 254 | | |
| |||
318 | 325 | | |
319 | 326 | | |
320 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
321 | 335 | | |
322 | 336 | | |
323 | 337 | | |
| |||
0 commit comments