Question
Custom environment variables can be defined at multiple levels within a workflow file including: (Each answer presents a complete solution. Choose three.)
- A. top level. Correct
- B. step level. Correct
- C. default level.
- D. runner level.
- E. job level. Correct
- F. stage level.
Explanation
The env key can be set for the entire workflow at the top level, for a job with jobs.<job_id>.env, and for a single step with jobs.<job_id>.steps[*].env. The more specific level overrides the broader one. The defaults key sets default shell and working directory, not environment variables. Workflow syntax has no runner or stage level for env.