Repository Level Secrets Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Manage Encrypted Secrets

What you'll be asked

  1. Where do you navigate in the GitHub UI to add a new repository-level secret?
  2. If you have a secret named 'API_KEY', how do you correctly reference it within a GitHub Actions workflow YAML file?
  3. What happens if you attempt to print a secret to the logs using 'echo ${{ secrets.MY_SECRET }}' in a workflow step?
  4. Which of the following statements is true regarding the visibility of repository-level secrets?
  5. You need to use a secret in a conditional 'if' statement. Why might the workflow fail or behave unexpectedly?

Answers and explanations come after you submit.