Which of the following is REQUIRED inside every job definition in a GitHub Actions workflow?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Every job needs a place to live — 'runs-on:' is the address that tells GitHub which runner machine to use.
Full explanation below image
Full Explanation
'runs-on:' is the only required field inside a job definition (aside from at least one step). It specifies the runner environment. 'needs:' is optional and defines job dependencies. 'environment:' is optional and gates deployment to a protected environment. 'strategy:' is optional and enables matrix builds. Without 'runs-on:', GitHub cannot determine where to execute the job and will reject the workflow.