adding ARC runner at enterprise level to GHEC, 404 #171574
-
Why are you starting this discussion?Error What GitHub Actions topic or product is this about?ARC (Actions Runner Controller) Discussion DetailsI am trying to setup ARC auto scale with on prem host and k8s cluster. I have followed their instructions, but they do not mention any examples or details for adding runners at enterprise level, only giving examples for org level, however they say enterprise is possible. I am authenticating with a PAT generated by the enterprise admin account, this has permissions RW on actions and RW on Administration. The Docs for this part mention permissions scopes that don't seem to exist anymore. for example, the word "enterprise" does not appear on this page. I am using a PAT because the docs say that Github Apps do not work for enterprise level. ![]() I have tried making the PAT in the accounts both of the Enterprise Admin and the Enterprise Owner, same result. Both times the resource owner is that user, as the enterprise itself does not appear. The runner set listener does not appear in k8s. These are the logs from the controller:
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. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
First off, let's talk about that URL in your logs. It's trying to call home to So, the fix for this is thankfully straightforward. We just need to gently guide the controller to the correct address. You'll want to add one specific line to your spec:
githubConfigUrl: https://<domain>.ghe.com/ Now, while we're at it, let's just double-check that PAT. You were right to suspect the permissions, the documentation can sometimes feel like it's playing catch-up. The administration scope is perfect for organization-level access, but for the enterprise level, it's best to create a token that is explicitly owned by the enterprise account itself, not your user. When you create a new fine-grained token, just ensure the Resource owner is set to your enterprise, and it has those read and write permissions for both Administration and Actions. I have a strong feeling that correcting the URL will get you most of the way there. Once you make that update, everything should start falling into place. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
Sorry for the delay, @alext-extracellular The You encountered this error because ARC is strict about what githubConfigUrl should point to:
Based on the docs and community feedback, valid examples include:
In your case, since you're targeting enterprise-level runners, your
not Next step: Update your Helm manifest or githubConfigUrl: "https://github.com/enterprises/<your_enterprise>" Or in your Helm command: --set githubConfigUrl="https://github.com/enterprises/<your_enterprise>" The docs sometimes lag behind the UI, but users have had success using a classic PAT that includes the From GitHub discussion on Stack Overflow:
So:
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. |
Beta Was this translation helpful? Give feedback.
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 tokensBased 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…