-
Notifications
You must be signed in to change notification settings - Fork 309
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
help needed: 404 when creating PR using GITHUB_TOKEN #440
Labels
Type: Support
Any questions, information, or general needs around the SDK or GitHub APIs
Comments
flavianmissi
changed the title
help needed: 404 when creating PR with GITHUB_TOKEN
help needed: 404 when creating PR using GITHUB_TOKEN
Jan 21, 2022
Does the problem persist? Looks like you changed your code since you filed the issue? |
gr2m
added
Type: Support
Any questions, information, or general needs around the SDK or GitHub APIs
and removed
Type: Bug
Something isn't working as documented
labels
Mar 25, 2022
Hi @gr2m, I didn't change my code - not sure what that notification was about. |
I don't know what the problem could be, but I think it's unlikely an Octokit problem |
yeah you're probably right @gr2m, if you can't see anything obviously wrong the code I'd be okay with closing this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
I'm trying to create a pull request from a Github action and I'm getting a 404.
This is the action in question, and here is the relevant code.
The latest workflow run is using the
GITHUB_TOKEN
to authorise with the API.Here's the relevant code snippet:
What did you expect to happen?
I expected octokit to be able to create the PR instead of the 404. Github API docs state that the token should have read/write permission by default for the permissive setting (which my repo is using). Additionally, in the "Set up job" section of the workflow job I see
PullRequests: write
.What the problem might be
My suspicion is that this is a permission related problem, but as previously stated I'm using the
GITHUB_TOKEN
which as far as I understand should be able to create a PR. I'm probably missing something.Thanks in advance!
The text was updated successfully, but these errors were encountered: