Interview Prep/GitHub Actions/Runners, Self-hosted & ARC

`Http response code: NotFound from 'POST https://api.github.com/actions/runner-registration'` during `config.sh`.

BeginnerTroubleshootingRunners, Self-hosted & ARC
Answer

Likely causes → The registration token expired (valid one hour), was for a different scope (repo token used with org URL), or the URL is wrong.

Diagnose → Compare --url with where the token was created.

Fix →

TOKEN=$(gh api -X POST orgs/devopsshack/actions/runners/registration-token --jq .token)
./config.sh --url https://github.com/devopsshack --token "$TOKEN" --unattended

Prevent → Generate tokens just in time in automation, or use JIT configs.

All GitHub Actions questions Roadmap: GitHub Actions

More on Runners, Self-hosted & ARC