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

Fail to create release using non-latest commit isa with "GitHub release failed with status: 403" #411

Open
winni0713 opened this issue Feb 13, 2024 · 5 comments

Comments

@winni0713
Copy link

winni0713 commented Feb 13, 2024

I am only able to create release using latest commit sha. If I provide older commit sha, "GitHub release failed with status: 403" error is hit. attached the workflow yml for reference

image

pre-release.zip

@ForNeVeR
Copy link

Likely same as #400?

@winni0713
Copy link
Author

Likely same as #400?

No, i have added the write permission in yml file according to the solution in this issue. So using a few recent commit is fine to create release, but older one will hit error.

@chrisohaver
Copy link

I am seeing the same error. All workflows have read/write. And I have also added write permission to the workflow yml. I am using v2 of the workflow action. softprops/action-gh-release@v2

@winni0713, what commit is working for you?

@chrisohaver
Copy link

chrisohaver commented Mar 29, 2024

Using latest commit I am seeing the same failure.
softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564

I'm not sure if it matters, but in our case a tag in our repo with the same name at the same commit had existed before, but was deleted via the GitHub UI. Could this prevent the creation of the tag now?

@winni0713
Copy link
Author

@chrisohaver , i was using v1 previously and normally the latest 2 commit can create the release successfully. But it is strange that it is not reproducible in my another repo. Previous commit can still be used.

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

3 participants