Publishing brew taps via GitHub App #5175
-
So for a bit of context:
This is my sample of the You can see that the GitHub token I am passing through is actually the access token for the app, which does indeed have rights to push, pull and create PRs in every repo under my org. I tried creating a release here: https://github.com/mirceanton/talswitcher/actions/runs/11134112137/job/30941658207 But I get the following error:
Which is a bit confusing to me, as I am 100% sure that github app has rights to push commits to my Are there any extra steps I need to make this work? As far as I understand this is a common issue with workflow-scoped tokens and the solution is to provide a PAT. I am, however, not using workflow tokens but a github app, which should be the equivalent of providing a PAT. Am I missing something here? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
you are likely missing some permission, you could probably test it by crafting a PUT request using the problematic token https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents |
Beta Was this translation helpful? Give feedback.
After some more troubleshooting, I was able to make it work by passing in a github PAT to the
TAP_GITHUB_TOKEN
. I have no idea why the github app is not working. I was able to push to the repo manually by generating a token for it.I tried to put the app token in the
TAP_GITHUB_TOKEN
env var as well and it failed with the same error.I'd love to get that to work properly, but for now I'll call this good enough I guess