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
Auto Shipit with Protected Branch #945
Comments
I think this is the issue. If this works please comment back and I will add a note to the docs. (Or if you want to make a PR I will merge it) |
Unfortunately this didn’t solve the problem. It seems like the |
I'm still pretty sure that you're token needs a little more permissions. To check this I did the following: Turn on branch protection for Result: https://github.com/hipstersmoothie/auto-config-hipstersmoothie/runs/451642081?check_suite_focus=true I got the same error as your did. After switching back to the Result: https://github.com/hipstersmoothie/auto-config-hipstersmoothie/actions/runs/40930001 Release successful ✅ I think I need to make it clearer what permissions to give the token in the docs 😅 |
When you say turn on branch protection - what does that include? Is EDIT: The second link should probably be this: https://github.com/hipstersmoothie/auto-config-hipstersmoothie/runs/451645892?check_suite_focus=true |
@bbrinx Any update on this? Will probably close soon without a reproducible example |
@hipstersmoothie I added a token with all permissions and it worked! Seems like I didn't set the right permissions the first time I tried. Thanks! |
Awesome! |
doesn't work if you have "required checks" ticked. |
Describe the bug
When running auto in a CI environment, e.g. Github Actions,
auto shipit
will fail when master branch protection is turned on. Is there any way, maybe by setting up permissions in a certain way, to overcome this issue without disabling branch protection?To Reproduce
Using the following Github Action workflow and setting master as a protected branch will result in a failed push attempt with this error message:
Github Action workflow
The text was updated successfully, but these errors were encountered: