jreleaser / jreleaser.github.io

🌐 jreleaser.org website
4 stars 39 forks source link

[doc] GitHub repositories with insufficient permissions prevent releases #54

Open sormuras opened 1 year ago

sormuras commented 1 year ago

New GitHub repositories start with insufficient access rights for jreleaser release to GitHub releases command.

The error message does look like:

[INFO]  Releasing to https://github.com/ORG/REPO
[INFO]  Writing output properties to out/jreleaser/output.properties
Error:  JReleaser failed after 2.541 s
Unexpected error when creating release
jreleaser.shadow.org.kohsuke.github.HttpException: {"message":"Resource not accessible by integration","documentation_url":"https://docs.github.com/rest/releases/releases#create-a-release"}
Error: Process completed with exit code 1.

Or like this:

[INFO]  Releasing to https://github.com/ORG/REPO
[INFO]  Writing output properties to out/jreleaser/output.properties
Error:  JReleaser failed after 2.541 s
Unexpected error when creating release
jreleaser.shadow.org.kohsuke.github.HttpException: {"message":"Resource not accessible by integration","documentation_url":"https://docs.github.com/rest/reference/repos#delete-a-release"}
Error: Process completed with exit code 1.

Switching to "Read and write permissions" in "Settings - Actions - General" helps: image

aalmiray commented 1 year ago

Also happens when a private repository is made public.