Skip to content
Discussion options

You must be logged in to vote

You don’t need the PAT for the Git operations at all, you need it when creating the PR. And the actions/github-script step doesn’t see the token stored in the Git configuration, you need to provide it as described in the documentation:

  <a href="https://github.com/actions/github-script#using-a-separate-github-token" target="_blank" rel="noopener">GitHub</a>

GitHub - actions/github-script: Write workflows scripting the GitHub API in...

Write workflows scripting the GitHub API in JavaScript - GitHub - actions/github-script: Write workflows scripting the GitHub API in JavaScript

I recommend you remove the PAT from the Git config to minimize available privileges. The GITHUB_TOKEN shoul…

Replies: 7 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@InDieTasten
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@InDieTasten
Comment options

Comment options

You must be logged in to vote
1 reply
@thalysonalexr
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback Share your thoughts and suggestions on GitHub features and improvements
5 participants