GITHUB-ACTIONS · Question #54
In which scenarios could the GITHUB_TOKEN be used? (Choose two.)
The correct answer is C. to publish to GitHub Packages D. to create issues in the repo. 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…
Question
In which scenarios could the GITHUB_TOKEN be used? (Choose two.)
Options
- Ato leverage a self-hosted runner
- Bto create a repository secret
- Cto publish to GitHub Packages
- Dto create issues in the repo
- Eto read from the file system on the runner
- Fto add a member to an organization
How the community answered
(47 responses)- A4% (2)
- B2% (1)
- C81% (38)
- E11% (5)
- F2% (1)
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.
Topics
Community Discussion
No community discussion yet for this question.