-
-
Notifications
You must be signed in to change notification settings - Fork 472
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
GitHub release failed with status: 403 #236
Comments
I'm getting the same 403
I have the same workflow permissions too. |
I resolved this by adding this to my yml workflow file permissions:
contents: write |
You might also need to disable tag protection rules in your repository if any are defined. |
Workaround [this](softprops/action-gh-release#236) bug in softprops/action-gh-release by giving the GITHUB_TOKEN write permissions for the repository. Documentation [here](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs).
#236 (comment) worked for me. |
- (Acgua) Github Workflow Deploy - try to fix GitHub release failed with status: 403 undefined ([Link](softprops/action-gh-release#236 (comment)))
for creating Github releases. See: softprops/action-gh-release#236 (comment)
Worth adding this to the readme surely? |
this might be the reason for the failures from the first run softprops/action-gh-release#236 (comment)
This should fix "GitHub release failed with status: 403" Recommended in: softprops/action-gh-release#236
would it make sense to include this snipplet in the examples in the top-level README, instead of / in addition of mentioning it at the end? I suppose most people are as lazy as me and just leave the default repository permission alone, copy-and-paste the example and edit a bit to try to get it to work. So it would be nice to have the examples working as-is in most people/organizations' settings. If the repository-level change is preferred, it probably should be mentioned at the top of the readme, instead of the end. I think having it as a per-job/per-action setting is fine for most people. |
- `contents: write` allows the action to create a release. - https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs - softprops/action-gh-release#236 (comment)
This is a known issue documented in softprops/action-gh-release#236 (comment) Fixes bazel-contrib#64
This is a known issue documented in softprops/action-gh-release#236 (comment) Fixes #64
this was resolved with the settings provided by @HinTak << |
update permissions per softprops/action-gh-release#236
Hey guys,
I am getting a 403 when pushing a release using the action. I have attached the config and a screenshot of my security settings which should be ok. Any help appreciated >
code block <<
error <<
workflow permissions <<
The text was updated successfully, but these errors were encountered: