Flashcardsfor IT Certifications

D4: Encrypted Secrets & Variables

GH-200 GitHub Actions exam practice questions · 11 flashcards

Question
Secret scopes?
1 / 11

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 11 Encrypted Secrets & Variables practice questions and answers
  1. Secret scopes?
    Organization, repository, environment.
  2. Variable scopes?
    Organization, repository, environment (vars context).
  3. Accessing secrets in workflows?
    ${{ secrets.NAME }} usually mapped to env.
  4. Accessing variables?
    ${{ vars.NAME }}.
  5. Secrets in actions?
    Pass as inputs or env; actions can't read secrets directly.
  6. Secrets REST API?
    Get repo public key, encrypt with libsodium sealed box, PUT /repos/{o}/{r}/actions/secrets/{name}.
  7. Variables REST API?
    POST/PATCH /repos/{o}/{r}/actions/variables.
  8. gh CLI for secrets?
    gh secret set NAME --body ... --env/--org/--repos.
  9. Secret naming rules?
    Alphanumeric/underscore, can't start with GITHUB_ or a number, case-insensitive.
  10. Variable limits?
    Up to 1,000 org, 500 repo, 100 environment variables; 48 KB each.
  11. Scenario: rotate a secret across 200 repos automatically. Approach?
    Org secret updated via REST API/gh CLI.