terraform-aws-github-runner
terraform-aws-github-runner copied to clipboard
feat: Adding the possibility of removing the default labels
In case the pool of runners deployed using this module are fully available for an wide GH org (no repository restrictions) any workflow configured to run in runners that contain just default labels in the runs-on definition:
e.g.
runs-on: self-hosted
runs-on: Linux
can end-up running in this pool without knowing it. That's why I have decided to remove the default labels from our runners and just rely on unique custom labels, and I believed the best way to do it by adding a runner_enable_default_labels variable - that by default is true (so, it doesn't change the current behavior), but it can help other people to deal with similar issues like the one described above.
I think I missed GitHub changes this. In the past the default labels are added by GitHub without control. When we introduced the JIT config the default labels are not added by default. But is this the same for non JIT?
I think I missed GitHub changes this. In the past the default labels are added by GitHub without control. When we introduced the JIT config the default labels are not added by default. But is this the same for non JIT?
We're using JIT - and the default labels are added by default, that's why we have created this new variable and set it to false in the cases where we just want to use custom labels
For the reasons explained in the original post, this feature would be great, so you can enable runners without repository restrictions.
runs-on: self-hosted won't accidentally trigger a launch if only custom labels have been added.
Maybe I am mistaken (and I might be!) but here are a few quick comments:
-
This appears to be the pull request adding the feature: https://github.com/actions/runner/pull/2443
-
It doesn't mention JIT config. Isn't JIT completely orthogonal to default labels? Unrelated. So remove JIT from this PR.
-
The feature uses the flag
--no-default-labels. Where is the flag--no-default-labelsin this PR?
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
Sorry we had no time yet to dig in this PR. I do my best to check the PR in the coming week. Sorry for the delay.
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
Hi @npalm, any update on this PR? This will help us a lot once merged. Thank you.
hello, any updates on this? would be a huge help!