404 on PUT content with content: write permissions set #2415
Labels
hacktoberfest
Issues for participation in Hacktoberfest
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
Type: Support
Any questions, information, or general needs around the SDK or GitHub APIs
Hi there, I'm at a loss with updating the contents of a file using the rest api. I'm getting a 404 not found error when updating a file using github actions.
I can get the contents but not update it. I've seen others have the same issue with permissions and I'm fairly confident I've tried all the permissions things I know of but maybe theres something I missed. Its worth mentioning that the repo is an organisation one and not a personal one if that makes any difference.
contents: write
Accept: "application/vnd.github+json",
My github_token permissions from the actions:
I can see from here that
contents:write
is needed for my calls and myGET issues
call works fine along with myGET content
one its justPUT content
that fails.And my github action
This is the result I'm getting
The text was updated successfully, but these errors were encountered: