GITHUB-ACTIONS practice question 12 of 15
Your organization is managing secrets using GitHub encrypted secrets, including a secret named SuperSecret. As a developer, you need to create a version of that secret that contains a different value for use in a workflow that is scoped to a specific repository named MyRepo. How should you store the secret to access your specific version within your workflow?
Full set: 72 questionsCorrect Answer:
B. Create MyRepo_SuperSecret in GitHub encrypted secrets to specify the scope to MyRepo.
Explanation
To scope a secret to a specific repository, you can create a new secret with a name like MyRepo_SuperSecret in the secrets section of the MyRepo repository's settings. This ensures that the secret is specific to that repository and can be used within its workflows.
Keep practicing
Take the free GITHUB-ACTIONS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GITHUB-ACTIONS practice questions
- Question 1Which statement is true about using default environment variables?
- Question 2Which default GitHub environment variable indicates the owner and repository name?
- Question 3Which workflow event is used to manually trigger a workflow run?
- Question 4Which default GitHub environment variable indicates the name of the person or app that in…
- Question 5You are reaching your organization's storage limit for GitHub artifacts and packages. Wha…
- Question 6Which choices represent best practices for publishing actions so that they can be consume…
