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:
New GitHub repositories start with insufficient access rights for
jreleaser
release to GitHub releases command.The error message does look like:
Or like this:
Switching to "Read and write permissions" in "Settings - Actions - General" helps: