PAT not working #182613
-
Why are you starting this discussion?Question What GitHub Actions topic or product is this about?General Discussion DetailsHi! Currently facing some authentication issues, for which I am seeking your expert guidance. I have two GH repos, repo_1 and repo_2. I have created a PAT for private repos and - just for testing - I assigned all possible permissions. (repo, workflow, actions, etc.) If I try to invoke the /users endpoint with this token, it works fine. If I try to invoke another workflow in another repo of mine, I receive 403. The PAT is associated to my user. My user has writing access. Any idea why I am still getting a 403 pls? any help would be greatly appreciated. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
You’re hitting 403 because the workflow in repo_2 must explicitly allow external triggering and your PAT must be used correctly. If you want it to match the original exactly, here’s the plain version: Fix steps:
That should clear the 403. |
Beta Was this translation helpful? Give feedback.
-
|
I regenerated the token and it worked with this set of permissions: Read access to metadata |
Beta Was this translation helpful? Give feedback.
I regenerated the token and it worked with this set of permissions:
Read access to metadata
Read and Write access to actions, administration, code, and workflows