GitHub Foundations — Question 13

Which scopes are available to define custom environment variables within a workflow file? (Choose three.)

Answer options

Correct answer: A, E, F

Explanation

The correct scopes for defining custom environment variables include the entire workflow using env at the top level (A), the job contents using jobs.env (E), and specific steps within a job using jobs..steps[*].env (F). Options B and C are incorrect as they do not represent valid scopes for environment variable definitions, and option D is only relevant to job steps, not at a broader scope.