-
Notifications
You must be signed in to change notification settings - Fork 259
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
Fails to push tags to protected main branch #387
Comments
Did you find any solution? |
No, but I did find a workaround, I just added the PAT owner (myself) to the exception list and it works now |
I am also adding a repo scoped PAT. And i don't know how it's working for everyone else. |
Maybe we made some mistake, but this works till the devs get a chance to check this out |
Found the correct solution permissions:
id-token: write
contents: write
pull-requests: write Not sure if |
Works on a protected main branch? Strange... didn't work for me |
I am not using protect rules. But that is what i needed. Anyways, |
One more thing You are probably using an organization, which means you must first enable this behavior on the organization level and then on the repository level Go to https://github.com/organizations/YOUR_ORG/settings/actions and check Allow GitHub Actions to create and approve pull requests |
The github action is configured using this workflow file:
I am not publishing to npm, so just running changeset tag so that the github release is created.
The tags gets generated but fail to push to the main citing
git error 128
insufficient permissions.The log for the action:
I have given the PAT write permission to content, issues and PRs.
I have a ruleset that has the following branch rules:
Restrict deletions
andBlock force pushes
. This ruleset was initially enabled which caused this error and the action was successful when the ruleset was disabled. I dont see any force pushes happening in the logs, is there a particular reason why this fails, and will I have to add myself as an exception to the ruleset in order to make it work?refs:
failing action
successful action after disabling ruleset
tree at the time of discovery
The text was updated successfully, but these errors were encountered: