"Check if the Actions runner has access to the GitHub Actions service" fails with 401 to https://docs.github.com/rest #130641
Replies: 3 comments
-
Reviewing https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api?apiVersion=2022-11-28#about-authentication, I tried (and failed) to authenticate to the GitHub REST API using the self-hosted runner token.
|
Beta Was this translation helpful? Give feedback.
-
Pretty sure I am not spamming the GitHub REST API as I am performing checks manually from the command line, not scripting them. I am consistently getting a HTTP status code 401 and not generating thousands of requests per hour. Additionally, I am not seeing any other 4XX codes indicating this issue is rate limiting. Performing this first thing today, I still get...
Generating a new GitHub self-hosted runner token exported as ${TOKEN2}, this still fails the same way...
I have visually verified the ${TOKEN} and ${TOKEN2} environment variables are not empty and performed a command line check...
Again, this was working previously with the existing firewall settings. Furthermore, removing the Authorization header I get...
|
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
This was previously working until the runner registration expired after two weeks unused.
I followed the steps for creating a new self-hosted runner associated with my repository on a MacBook M1 Pro running MacOS Sonoma 14.5 build 23F79. I have retried this multiple times with the same results. I have tried this on multiple networks (home, enterprise, VPN).
./run.sh
reports...The runner appears in the GitHub repository Settings > Actions > Runners with status green and "Idle". However on running a job with matching tags "self-hosted, macOS, ARM64, [...]" (custom tags redacted) the workflow pauses on...
Following the steps at https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/monitoring-and-troubleshooting-self-hosted-runners, I ran a diagnostic check with environment variable
TOKEN
from the setup steps (URL redated)...Looking in the /Users/runner/actions-runner/_diag/ActionsCheck_20240628-170417-utc.log I see...
All the troubleshooting checks found at https://github.com/actions/runner/blob/main/docs/checks/actions.md#what-is-this-check-for pass, including the GitHub API command...
I am at a loss and would appreciate assistance/suggestions.
Beta Was this translation helpful? Give feedback.
All reactions