Question
In which of the following scenarios should you use self-hosted runners? (Each correct answer presents a complete solution. Choose two.)
- A. when the workflow jobs must be run on Windows 10
- B. when jobs must run for longer than 6 hours Correct
- C. when a workflow job needs to install software from the local network Correct
- D. when GitHub Actions minutes must be used for the workflow runs
- E. when you want to use macOS runners
Explanation
A job on a GitHub-hosted runner can run for at most 6 hours, while a job on a self-hosted runner can run for up to 5 days. A self-hosted runner also sits on your own network, so it can reach and install software from local network resources that GitHub-hosted runners cannot. Self-hosted runners do not consume GitHub Actions minutes, and macOS runners are available as GitHub-hosted runners.