You installed specific software on a Linux self-hosted runner. You have users with workflows that need to be able to select the runner based on the identified custom software. Which steps should you perform to prepare the runner and your users to run these workflows? (Each correct answer presents part of the solution. Choose two.)
Select an option, then click Submit answer.
Reference / correct answer:
Add the label custom-software to the runner.
Most accepted answer: F. Add the label custom-software to the runner.
Community votes: A=1, B=1, C=2, E=3, F=4
Selected Answer: BE I agree with C and F. But you can also select a runner via group: https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/choose-the-runner-for-a-job jobs: check-bats-version: runs-on: group: ubuntu-runners This would make B and E also an option, right? upvoted 2 times
Selected Answer: CF Correct Answers: C, F Selected: F. Add the label custom-software to the runner - Custom label identifies this runner has the specific software installed C. Inform users to identify runner with labels custom-software and linux - Users specify runs-on: [custom-software, linux] to target this runner Not Selected: A. Configure webhook and network - Already done during initial runner setup; not specific to custom software scenario B. Create group and move runner into group - Runner groups are for access control, not for workflow targeting D. Add label linux to runner - Self-hosted Linux runners automatically have the self-hosted and linux labels by default E. Inform users to identify based on group - Workflows target runners by labels in runs-on:, not by group names upvoted 2 times
Selected Answer: CF Explanation Self-hosted runners are selected using labels, not runner groups. Users specify labels in their workflow’s runs-on field. To make the runner discoverable based on the installed software, you must add a custom label (for example, custom-software) to the runner. Users then need to reference that label (and the OS label, such as linux) in their workflows. Why the other options are incorrect A: Webhooks/network configuration is required to run self-hosted runners at all, but it does not help users select runners based on custom software. B & E: Runner groups control access and permissions, not runner selection in workflows. D: The linux label is automatically applied to Linux self-hosted runners, so adding it manually is unnecessary. upvoted 2 times
Selected Answer: EF In theory C is also correct. Alltough a label excplicitly called "custom-software" would be dumb, because we need to differentiate the "custom-software" With appropriate labels C and F are correct. Else I'd go with E + F upvoted 1 times
Selected Answer: EF To target a specific self-hosted runner that has unique software, you primarily use labels and runner groups. The goal is to allow users to target the runner without knowing its specific machine name. upvoted 1 times