Skip to content

GITHUB_TOKEN replacement #27067

Discussion options

You must be logged in to vote

Options to restrict the GITHUB_TOKEN have been added recently:

  <a href="https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/" target="_blank" rel="noopener">The GitHub Blog</a>

GitHub Actions: Control permissions for GITHUB_TOKEN | GitHub Changelog

GitHub Actions: Control permissions for GITHUB_TOKEN

But even before that the GITHUB_TOKEN was generally the safer choice, because it’s scoped to the repository. A PAT applies to everything you have access to.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants