Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GitHub Exam GitHub-Actions Topic 3 Question 6 Discussion

Actual exam question for GitHub's GitHub-Actions exam
Question #: 6
Topic #: 3
[All GitHub-Actions Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: A, D, F

You can define environment variables for the entire workflow by using the env key at the top level of the workflow file. These environment variables will be available to all jobs and steps within the workflow.

Environment variables can also be set within the run attribute of a job step, and these variables will be scoped only to that specific step.

You can set environment variables for specific steps within a job by using jobs.<job_id>.steps[*].env, which allows you to define variables that will only be available to that step.


Contribute your Thoughts:

Jess
14 days ago
I think the available scopes to define custom environment variables are A, C, and E.
upvoted 0 times
...
Willard
15 days ago
A, C, and E sound like the right options to me. I'll go with those.
upvoted 0 times
...

Save Cancel