CloudSnorkel / cdk-github-runners

CDK constructs for self-hosted GitHub Actions runners
https://constructs.dev/packages/@cloudsnorkel/cdk-github-runners/
Apache License 2.0
261 stars 36 forks source link

feat: add option to use PAT to register runners on enterprise level #467

Open pharindoko opened 8 months ago

pharindoko commented 8 months ago

Currently it`s only possible to register runners on repository level using the PAT option. And via github app it`s only possible to do this on repo or org level.

I would like to be able to register runners on enterprise level using GHES.

You can set in the pat permissions the option to

kichik commented 8 months ago

I'm open to it, but don't have GHES to test.

kichik commented 8 months ago

How do you register runners on the enterprise level with API? I can only see API for organization registration that can take a token with manage_runners:enterprise.

pharindoko commented 8 months ago

Haven`t registered a runner yet on enterprise level. As far as I`ve read this should work ... https://docs.github.com/en/enterprise-server@3.9/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners#adding-a-self-hosted-runner-to-an-enterprise

kichik commented 7 months ago

Seems like this is the API we were looking for.