Repository navigation
Commit 8c62726
committed
Fix crd-size workflow: set GH_TOKEN for gh api call
The "Compute CRD JSON size" step uses `gh api` to fetch the PR head's
CRD file, but did not set GH_TOKEN. gh requires GH_TOKEN in Actions and
exited with code 4 before producing output, failing the check.
Add GH_TOKEN: ${{ github.token }} to the step env. The existing
`contents: read` permission is sufficient for the contents API read.
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>1 parent 32d37f4 commit 8c62726
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments