GitHub Foundations — Question 3

When should you use the GITHUB_TOKEN in a workflow?

Answer options

Correct answer: A

Explanation

The GITHUB_TOKEN is specifically used for making authenticated requests to the GitHub API, allowing workflows to interact with GitHub securely. Options B, C, and D do not require the GITHUB_TOKEN; SSH connections and accessing repository-level secrets involve different authentication methods, while calling actions from the marketplace does not necessitate this token.