Exam GitHub-Actions Topic 5 Question 1 Discussion

Actual exam question for GitHub's GitHub-Actions exam
Question #: 1
Topic #: 5
Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?

Suggested Answer: B Vote an answer

The $GITHUB_ENV environment variable is used to set environment variables that persist across steps in a workflow job. By echoing FOO=bar into $GITHUB_ENV, the variable FOO will be available in subsequent steps within the same job.

by Alberta at Oct 24, 2025, 11:13 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10