Microsoft

GH-200 practice question 3

GitHub Actions · free question 3 of 20

Question

When should you use the GITHUB_TOKEN in a workflow?
  • A. when you want to make authenticated calls to the GitHub API Correct
  • B. when you want to connect to the runner via SSH
  • C. when you want to access repository-level secrets
  • D. when you want to call an action from the marketplace

Explanation

GITHUB_TOKEN is an installation access token created for each job, used to authenticate on behalf of GitHub Actions, for example when calling the GitHub API for the workflow's repository. It is not an SSH credential, secrets are read through the secrets context without it, and public Marketplace actions are referenced with uses: without any token.

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.