Skip to content

Make GitHub action use PATs instead of Repository secrets #25001

Discussion options

You must be logged in to vote

My solution was to create a PAT with read/write/delete package permissions, and to copy the generated token value to a repository secret, and then to reference that repository secret in the action. That seems to be the only way to use PATs in actions, by copying them to the action’s repo.

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
Answer selected
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
3 participants