softprops / action-gh-release

📦 :octocat: GitHub Action for creating GitHub Releases
MIT License
3.91k stars 440 forks source link

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

Open winni0713 opened 5 months ago

winni0713 commented 5 months ago

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 commented 5 months ago

Likely same as #400?

winni0713 commented 5 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 3 months ago

@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.