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 questions
Answer options
A: Create a duplicate entry for SuperSecret in the encrypted secret store and specify MyRepo as the scope.
B: Create MyRepo_SuperSecret in GitHub encrypted secrets to specify the scope to MyRepo. Correct answer
C: Create a file with the SuperSecret. information in the .qithub/secrets folder in MyRepo.
D: Create and access SuperSecret from the secrets store in MyRepo.
Correct 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.

Scroll to Top