Closed StephanHCB closed 5 months ago
Hello! Thank you for filing an issue.
The maintainers will triage your issue shortly.
In the meantime, please take a look at the troubleshooting guide for bug reports.
If this is a feature request, please review our contribution guidelines.
Hey @StephanHCB,
Thank you for describing this issue so clearly! We have created a PR that will check the status of the response.
I got the same issue.
Checks
Controller Version
0.9.2
Deployment Method
ArgoCD
Checks
To Reproduce
Describe the bug
The logs indicate that obtaining an access token worked when in truth this fails with HTTP 403 due to the missing IP allow list entry.
GitHub Enterprise support has confirmed that this request actually failed with 403 due to the wrong IP allow list, but there is no log line indicating the error.
The next request then fails with 401, and this is the first error visible in the logs, when in truth this is a consequence of the failure to obtain an access token.
I believe the error is due to not checking the status code on the HTTP response before parsing the JSON response.
Should insert a status check before this line (and fail and log an error, rather than continue):
https://github.com/actions/actions-runner-controller/blob/master/github/actions/client.go#L1058
Describe the expected behavior
The log should indicate the failure to obtain an access token.
Additional Context
Controller Logs
Runner Pod Logs