Skip to content

Team mention from bot not working #25608

Answered by wechuli
awendt asked this question in Actions
Discussion options

You must be logged in to vote

The issue here is that the default GITHUB_TOKEN does not have permission to read teams in an organization:

  <a href="https://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token" target="_blank" rel="noopener nofollow ugc">GitHub Docs</a>

Authentication in a workflow - GitHub Docs

Its access is limited to the repository where the workflow is running. You’ll need to create a PAT for that functionality to work. If you are using actions/github-script, you can pass the PAT as an input (it default to the GITHUB_TOKEN if no other token is passed):

  <a href="https://github.com/actions/github-script/blob/5d31eecbde4f80ba181f36dbc095950302fca3…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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