Skip to content

GitHub fine-grained PAT #304

Answered by caleblloyd
Kwill3 asked this question in Q&A
Discussion options

You must be logged in to vote

I am using a Fined Grained PAT with these options. I noticed that the auto-detection of email based on the PAT did not work for the Fine Grained PATs so I had to explicitly set GIT_USERNAME and GIT_EMAIL

      with:
        GH_PAT: ${{ secrets.FINE_GRAINED_PAT }}
        IS_FINE_GRAINED: true
        GIT_USERNAME: your-git-username
        GIT_EMAIL: your-git-email

For the actual PAT, I am using these settings for the target repository:

  • Contents: Read and Write
  • Pull requests: Read and write
  • Metadata: Read only (mandatory when checking Pull request)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kwill3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants