terraform-aws-github-runner icon indicating copy to clipboard operation
terraform-aws-github-runner copied to clipboard

feat: Adding the possibility of removing the default labels

Open jgutierrezglez opened this issue 2 years ago • 27 comments

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.

jgutierrezglez avatar Sep 21 '23 10:09 jgutierrezglez

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?

npalm avatar Sep 21 '23 12:09 npalm

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

jgutierrezglez avatar Oct 04 '23 12:10 jgutierrezglez

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:

  1. This appears to be the pull request adding the feature: https://github.com/actions/runner/pull/2443

  2. It doesn't mention JIT config. Isn't JIT completely orthogonal to default labels? Unrelated. So remove JIT from this PR.

  3. The feature uses the flag --no-default-labels. Where is the flag --no-default-labels in this PR?

sdarwin avatar Nov 01 '23 23:11 sdarwin

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.

github-actions[bot] avatar Dec 02 '23 01:12 github-actions[bot]

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.

npalm avatar Dec 08 '23 08:12 npalm

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.

github-actions[bot] avatar Feb 11 '24 01:02 github-actions[bot]

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.

github-actions[bot] avatar Apr 11 '24 01:04 github-actions[bot]

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.

github-actions[bot] avatar May 17 '24 01:05 github-actions[bot]

Hi @npalm, any update on this PR? This will help us a lot once merged. Thank you.

jeff-wassouf avatar Jun 27 '24 00:06 jeff-wassouf

hello, any updates on this? would be a huge help!

iotanum avatar Jul 26 '24 12:07 iotanum