GITHUB-ACTIONS practice question 7 of 15

In which scenarios could the GITHUB_TOKEN be used? (Choose two.)

Full set: 72 questions
Answer options
A: to leverage a self-hosted runner
B: to create a repository secret
C: to publish to GitHub Packages Correct answer
D: to create issues in the repo Correct answer
E: to read from the file system on the runner
F: to add a member to an organization
Correct Answer:
C. to publish to GitHub Packages; D. to create issues in the repo
Explanation

The GITHUB_TOKEN is automatically provided by GitHub in workflows and can be used to authenticate API requests to GitHub, including publishing packages to GitHub Packages. The GITHUB_TOKEN is also used to authenticate API requests for actions like creating issues, commenting, or interacting with pull requests within the same repository.

Scroll to Top