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.
[x] I'm including the sha of the existing file
[x] I've manually set my permissions so I am sure I have correct access to Contents with the GITHUB_TOKEN contents: write
[x] I've set all sorts of combinations of Accept: "application/vnd.github+json",
I can see from here that contents:write is needed for my calls and my GET issues call works fine along with my GET content one its just PUT content that fails.
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