Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Runner group option #630

Merged
merged 4 commits into from
Oct 16, 2024
Merged

feat: Runner group option #630

merged 4 commits into from
Oct 16, 2024

Conversation

kichik
Copy link
Member

@kichik kichik commented Oct 14, 2024

Allow setting runner group. GitHub Teams and Enterprise allow you to create runner groups and assign them to specific repos. If a repo is not assigned to the group, it can't use it. This allows you to limit certain runners to certain repos.

new CodeBuildRunnerProvider(this, 'limited runner', {
   labels: ['special-runner'],
   group: 'special',
});

The group must exist or the runner will not start. The following error will show up in the logs:

Could not find any self-hosted runner group named "special".

Users will still be able to trigger this runner with the correct labels. But the runner will only be able to run jobs from repos allowed to use the group.

Resolves #500

kichik and others added 4 commits October 14, 2024 16:52
@mergify mergify bot merged commit 956536f into main Oct 16, 2024
18 checks passed
@mergify mergify bot deleted the runner-group branch October 16, 2024 14:33
kichik added a commit that referenced this pull request Oct 16, 2024
This issue was never present in a release. It was caused by #630.
mergify bot pushed a commit that referenced this pull request Oct 16, 2024
This issue was never present in a release. It was caused by #630.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Enable runnergroup option for provider
2 participants