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

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

Open
sormuras opened this issue Mar 14, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@sormuras
Copy link

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

@sormuras sormuras added the bug Something isn't working label Mar 14, 2023
@aalmiray aalmiray transferred this issue from jreleaser/jreleaser Mar 14, 2023
@aalmiray
Copy link
Member

Also happens when a private repository is made public.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants