nerdexam
GitHub

GITHUB-ACTIONS · Question #73

GITHUB-ACTIONS Question #73: Real Exam Question with Answer & Explanation

Sign in or unlock GITHUB-ACTIONS to reveal the answer and full explanation for question #73. The question stem and answer options stay visible for context.

Question

How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?

Options

  • ASet the encrypted secret as a job-level environment variable and then reference the environment
  • BCreate a job dependency that exposes the encrypted secret as a job output, which can then be
  • CUse the secrets context within the conditional statement, e.g. ${{ secrets.MySuperSecret }}.
  • DUse a workflow command to expose the encrypted secret via a step's output parameter and then

Unlock GITHUB-ACTIONS to see the answer

You've previewed enough free GITHUB-ACTIONS questions. Unlock GITHUB-ACTIONS for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full GITHUB-ACTIONS Practice