Commit a1075c2
fix: give the specification fetch the token gh demands inside Actions
`fetch_measurement_inputs.py` reads the pinned Stripe documents through the `gh` CLI,
because both are larger than the 1 MB ceiling GitHub puts on the base64 `.content`
field and only the raw endpoint returns them whole. Inside a workflow `gh` refuses to
run at all without `GH_TOKEN`, public repository or not, so the step this landed with
failed on its first run with `To use GitHub CLI in a GitHub Actions workflow, set the
GH_TOKEN environment variable`.
The workflow's own token covers it: the read is `stripe/openapi` at a pinned tag and
the job holds read permissions only. Scoped to the one step rather than the job, so
nothing else acquires a credential it has no use for.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent da6a820 commit a1075c2
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
145 | 150 | | |
146 | 151 | | |
147 | 152 | | |
| |||
0 commit comments