Black Friday Reward - Upto 75% off - Ends in 0d 00h 00m 00s - Coupon code: CFsave75

Microsoft GitHub Actions Exam GH-200 Question # 45 Topic 5 Discussion

Microsoft GitHub Actions Exam GH-200 Question # 45 Topic 5 Discussion

GH-200 Exam Topic 5 Question 45 Discussion:
Question #: 45
Topic #: 5

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


A.

Set the encrypted secret as a job-level environment variable and then reference the environment variable within the conditional statement.


B.

Create a job dependency that exposes the encrypted secret as a job output, which can then be leveraged in a subsequent dependent job.


C.

Use the secrets context within the conditional statement, e.g. ${{ secrets.MySuperSecret }}.


D.

Use a workflow command to expose the encrypted secret via a step ' s output parameter and then use the step output in the job ' s if: conditional.


Get Premium GH-200 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.