Skip to content
GH-200
Secure and optimize automation
medium
Question 7 of 28

A workflow author wants to run a step only when a secret exists. What should they do?

AUse the secret directly in an if expression
BCopy the secret to an environment variable and reference the environment variable in the if expression
CConvert the secret to a repository variable and check that instead
DReplace the if condition with needs

Educational Content — CertQnA practice questions are written against official exam objectives, covering the same domains tested on the real exam. All content is original and independent — not actual exam questions, not affiliated with any certification vendor. Learn more about our content policy

Discussion

Be the first to share your understanding of this concept

⚠️ Discussion is for concept clarification only. Do not share or request actual exam questions or answers.

Sign in to join the discussion