Managing Secrets via REST API Quiz

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

Quiz covering Manage Encrypted Secrets and Variables

What you'll be asked

  1. Which HTTP method is primarily used to create or update a repository secret via the GitHub REST API?
  2. When using the GitHub REST API to create a secret, what must be done to the secret value before sending it in the request body?
  3. To retrieve the public key required for encrypting secrets via the REST API, which endpoint should you call?
  4. You are automating secret management across an organization. Which scope is required in your Personal Access Token (PAT) to manage repository secrets?
  5. If you receive a 409 Conflict error when attempting to create a secret via the REST API, what is the most likely cause?

Answers and explanations come after you submit.