Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question over permissions required when using a GitHub App #114

Closed
rfennell opened this issue Feb 3, 2024 · 1 comment
Closed

Question over permissions required when using a GitHub App #114

rfennell opened this issue Feb 3, 2024 · 1 comment

Comments

@rfennell
Copy link
Contributor

rfennell commented Feb 3, 2024

I think I am missing the obvious, I have been trying to swap a fork of this project from using a PAT to using the GitHub App.

I have created the GitHub App and installed it into Org I have forked this repo into.

When I run the check update action

  • It gets a PAT ok
  • But when it tries to calling https://api.github.com/orgs/blackmarble-actions/repos?per_page=100 it errors.

No StatusCode is returned, all it says is the first GET call to list the repos fails

image

I am assuming it is just a permissions issues, but the PAT permissions public_repo*, read:org, read:user, repo:status*, repo_deployment*, workflow, actions: write, content: write, issues:write don't map one to one to the Git App permissions.

So, can you confirm the permissions you are using for GitHub Apps

@rajbos
Copy link
Owner

rajbos commented Feb 4, 2024

There was an issue with the calls being made to GitHub, it seems that they are now stricter in checking a header in the call that was not passed in. I fixed it in #115 and included the necessary scopes for the GitHub App in the readme.

Please pull in the update and retest 😀.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants