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

Error on tag pushing #332

Open
jithsree opened this issue Jan 8, 2025 · 3 comments
Open

Error on tag pushing #332

jithsree opened this issue Jan 8, 2025 · 3 comments

Comments

@jithsree
Copy link

jithsree commented Jan 8, 2025

2025-01-07T17:33:47Z: **pushing tag v0.xx.xx to repo xxxxxx/xxxxxxxx
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest/git/refs#create-a-reference",
"status": "404"
}

@mspray-vizio
Copy link

We've started experiencing the same as well but can't pinpoint when it started. We've consistently been on version 1.71.0 and the only thing that stands out is the Docker image is no longer being built with ca-certificates package which could explain the failed communication with HTTPS not fully functional. That also coincides, looking at the Docker build output, with a minor update on Alpine from 3.20 to 3.21 so not sure if that's even related to this action.

@jithsree
Copy link
Author

@mspray-vizio The issue was related to token permission. Those tokens was created by a member of the github org and it's resolved by using token from owner

@mspray-vizio
Copy link

mspray-vizio commented Jan 10, 2025

Wow, thank you @jithsree ! Followed up with our security team and found out that yep, during end of year code freeze they did maintenance to convert PATs from owners to a bot account (which are just members) in the repo secrets. Once we tested with an owner PAT, worked perfectly.

EDIT: Actually, it turned out to even be "dumber" than that 🤦 The bot user was only added with read access to our repo. Once we bumped up the perms, even the bot member PAT worked (which is preferable for our use case). Thank you again for the follow up and getting our brains out of the holiday fugue state :)

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