Flashcardsfor IT Certifications

D5: GITHUB_TOKEN, PATs & OIDC

GH-200 GitHub Actions exam practice questions · 11 flashcards

Question
GITHUB_TOKEN lifecycle?
1 / 11

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

Last updated: · Report an error on this page

Show all 11 GITHUB_TOKEN, PATs & OIDC practice questions and answers
  1. GITHUB_TOKEN lifecycle?
    Created per job, scoped to the repo, expires when job ends (or max 24h).
  2. GITHUB_TOKEN vs PAT?
    GITHUB_TOKEN: automatic, ephemeral, repo-scoped. PAT: user-tied, long-lived, broader — use only when needed.
  3. Restricting write scopes?
    permissions: contents: read etc.; default read-only.
  4. When need PAT/GitHub App token?
    Cross-repo access or triggering other workflows.
  5. GitHub App token in workflows?
    actions/create-github-app-token for scoped, short-lived cross-repo access.
  6. OIDC in Actions?
    Workflow obtains a signed JWT from GitHub's OIDC provider to exchange for cloud credentials.
  7. OIDC permission?
    permissions: id-token: write.
  8. OIDC claims?
    sub (repo:org/repo:ref:refs/heads/main or environment), aud, repository, ref, job_workflow_ref.
  9. Cloud trust config?
    AWS IAM OIDC provider/role, Azure federated credential, GCP Workload Identity Federation.
  10. Benefit of OIDC?
    No long-lived cloud secrets stored in GitHub.
  11. Scenario: deploy to AWS without storing access keys. Approach?
    OIDC with configure-aws-credentials and role trust on sub claim.