nerdexam
GitHub

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…

GitHub Actions - Security and Authentication

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)
  • A
    4% (2)
  • B
    2% (1)
  • C
    81% (38)
  • E
    11% (5)
  • F
    2% (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

#GITHUB_TOKEN#token permissions#GitHub Packages#repository permissions

Community Discussion

No community discussion yet for this question.

Full GITHUB-ACTIONS Practice