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

[BUG]: Resource not accessible by integration using git.createRef() octokit api method #2738

Closed
1 task done
younes101020 opened this issue Sep 28, 2024 · 1 comment
Closed
1 task done
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@younes101020
Copy link

What happened?

Hey, im searching for a way to act on behalf user repositories from github app using octokit, for the moment I've assigned my githubapp write and read rights to the github repostiories of users who authorize my app and I'm able to generate access tokens for users using https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app flow.

I have no problem listing repositories from this token, but as soon as I use the createRef() from octokit api method to create a new branch from main branche i have this error Resource not accessible by integration even though I've given the appropriate rights ↓
dis

Versions

  • nodejs v21.6.0
  • @octokit/rest 21.0.2

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@younes101020 younes101020 added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Sep 28, 2024
Copy link

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
Status: Done
Development

No branches or pull requests

1 participant