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.