Commit a94a4cf
committed
ci: authenticate the cpp-linter API requests
--files-changed-only makes cpp-linter query the commit through the REST
API. With no token it uses the anonymous budget, which is 60 requests per
hour shared across every job on the runner's IP, so it fails outright
whenever that is already spent:
response returned 403 from GET .../commits/10568eedaac4
API rate limit exceeded for 52.150.29.102.
cpp_linter/rest_api/github_api.py reads GITHUB_TOKEN and sends it as an
Authorization header, which puts the request on this repository's own
budget instead.1 parent 3de6067 commit a94a4cf
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
| |||
0 commit comments