Skip to content
\n

I have tested hitting this endpoint with curl, and it also gives back the 404. However, If I change the PAT to be incorrect, then it gives 401. So it seems the PAT is ok, but I suspect perhaps it does not have the right permissions. But with the docs not aligning to what I can see in the UI, I don't know which permissions to give it.

\n

Any help would be greatly appreciated.

","upvoteCount":4,"answerCount":3,"acceptedAnswer":{"@type":"Answer","text":"

Sorry for the delay, @alext-extracellular

\n

The githubConfigUrl needs to be the correct target endpoint.

\n

You encountered this error because ARC is strict about what githubConfigUrl should point to:

\n
    \n
  • \n

    It must correspond to the actual GitHub resource, a repository, organization, or enterprise, that the runners will be attached to

    \n
  • \n
  • \n

    The Controller then infers the correct API endpoint (including adding /api/...) for calls like fetching registration tokens

    \n
  • \n
\n

Based on the docs and community feedback, valid examples include:

\n
    \n
  • https://github.com/<your_enterprise>/<your_org>/<repo> (per-repo)
  • \n
  • https://github.com/<your_enterprise>/<your_org> (organization)
  • \n
  • https://github.com/enterprises/<your_enterprise> (enterprise level)
  • \n
\n

In your case, since you're targeting enterprise-level runners, your githubConfigUrl should actually be:

\n
https://github.com/enterprises/<your_enterprise>\n
\n

not https://<domain>.ghe.com/enterprises/<domain>/, because that looks like a GitHub Enterprise Server style address, not the GitHub Cloud format. And https://<domain>.ghe.com/ alone is too generic and gets rejected as malformed.

\n

Next step: Update your Helm manifest or values.yaml:

\n
githubConfigUrl: \"https://github.com/enterprises/<your_enterprise>\"
\n

Or in your Helm command:

\n
--set githubConfigUrl=\"https://github.com/enterprises/<your_enterprise>\"
\n

The docs sometimes lag behind the UI, but users have had success using a classic PAT that includes the manage_runners:enterprise scope.

\n

From GitHub discussion on Stack Overflow:

\n
\n

“I generated Personal Access Token (classic) with permission manage_runners:enterprise and all good. ARC was able to connect to enterprise.”

\n
\n

So:

\n
    \n
  • Create your PAT as a classic token, not a fine-grained token.
  • \n
  • Ensure Resource owner is indeed the enterprise account (given that's how the classic PAT behaves).
  • \n
  • Include at least the manage_runners:enterprise scope.
  • \n
\n

If you're using fine-grained tokens, they currently don’t support that enterprise runner management scope, and indeed, you’ve noted that you can't change the resource owner anyway.

","upvoteCount":1,"url":"https://github.com/orgs/community/discussions/171574#discussioncomment-14312435"}}}
Discussion options

You must be logged in to vote

Sorry for the delay, @alext-extracellular

The githubConfigUrl needs to be the correct target endpoint.

You encountered this error because ARC is strict about what githubConfigUrl should point to:

  • It must correspond to the actual GitHub resource, a repository, organization, or enterprise, that the runners will be attached to

  • The Controller then infers the correct API endpoint (including adding /api/...) for calls like fetching registration tokens

Based on the docs and community feedback, valid examples include:

  • https://github.com/<your_enterprise>/<your_org>/<repo> (per-repo)
  • https://github.com/<your_enterprise>/<your_org> (organization)
  • https://github.com/enterprises/<your_enterpri…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@alext-extracellular
Comment options

This comment was marked as spam.

Comment options

You must be logged in to vote
5 replies
@alext-extracellular
Comment options

@agace
Comment options

@steinwelberg
Comment options

@alext-extracellular
Comment options

@steinwelberg
Comment options

Answer selected by alext-extracellular
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage ARC (Actions Runner Controller) For issues and discussions related to the Actions Runner Controller project Misc General discussions about GitHub Actions that don't fit other found themes.
4 participants