Commit 9ca13ff
authored
fix: authenticate GitHub API call in deploy-docs workflow (#29)
Unauthenticated requests to api.github.com/repos/.../releases/latest
hit the 60 req/hr rate limit, returning an empty 403 body that caused
json.load() to raise JSONDecodeError. Fix by:
- Injecting GITHUB_TOKEN as Bearer auth header (rate limit → 5000/hr)
- Capturing the API response to $RELEASE_JSON before piping to python3
so a failed curl exits non-zero via set -euo pipefail instead of
silently feeding empty stdin to json.load()1 parent eda42b4 commit 9ca13ff
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
| 65 | + | |
63 | 66 | | |
64 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
65 | 72 | | |
66 | 73 | | |
67 | 74 | | |
| |||
0 commit comments