Microsoft

GH-200 practice question 16

GitHub Actions · free question 16 of 20

Question

In which scenarios could the GITHUB_TOKEN be used? (Each correct answer presents a complete solution. Choose two.)
  • A. to create a repository secret
  • B. to add a member to an organization
  • C. to read from the file system on the runner
  • D. to publish to GitHub Packages Correct
  • E. to create issues in the repo Correct
  • F. to leverage a self-hosted runner

Explanation

GITHUB_TOKEN is a repository-scoped installation token. With packages: write it can publish to GitHub Packages, and with issues: write it can create issues through the API. It cannot manage secrets or organization membership, because those need a personal access token or a GitHub App. Reading the runner's file system and using a self-hosted runner need no token at all.

Practice the whole free set

Answer all 20 free GH-200 questions with instant feedback, or unlock all 106 questions with Learn and Exam modes.