-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
pushing to protected doesn't work even when provided with administrator PAT #347
Comments
Hitting the exact same issue, at the exact same time! |
Tested that I have this issue outside of this plugin, in any organizationally-scoped repo. I tried:
I did a simple
|
You can see a variety of failed attempts here: https://github.com/sigpwny/websites/commits/main/ |
Started a discussion here: https://github.com/orgs/community/discussions/140561 |
Thanks for reporting and thanks @reteps for doing the investigative work. Looks like this is more of an issue – again – how GitHub handles protected branches and PATs. 🫠 |
Ok, I found my issue. I had a composite action between the points in which I commit and check out, that did another checkout.
failed |
succeeded with fine grained PAT with Content permission. keeping it open as it needs better documentation. |
git-auto-commit Version
v5.0.1
Machine Type
Ubuntu (eg. ubuntu-latest)
Bug description
auto commit action is not working despite repository being checked out with organization administrator's PAT.
Steps to reproduce
action: https://github.com/cataclysmbnteam/Cataclysm-BN/actions/runs/11172262688/job/31058436246
workflow: https://github.com/cataclysmbnteam/Cataclysm-BN/blob/6219fa3f81418eb28d7efe26a7622388573ee1a8/.github/workflows/pull-translations.yml
applied https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#push-to-protected-branches in: https://github.com/cataclysmbnteam/Cataclysm-BN/blob/6219fa3f81418eb28d7efe26a7622388573ee1a8/.github/workflows/pull-translations.yml#L21-L25
Tried solutions
repo:status
) as the docs did not mention themExample Workflow
Relevant log output
Repository
https://github.com/cataclysmbnteam/Cataclysm-BN
The text was updated successfully, but these errors were encountered: