Skip to content

Custom github token permission for private repositories #71

@ismailbennani

Description

@ismailbennani

Hello,

First of all thank you for this library it is amazing!

Permissions for private repositories

I encountered an issue while using it in a private repository with a custom github token. During the changelog generation step, I received the following error:

Preparing Changelog - 9999.0.0
  ── Preparing Changelog - 9999.0.0 ──────────────────────────────────────────────
  2025/03/23 10:50:24.133 info: [10] Building Changelog: collecting commits and PR for version 9999.0.0
  
Unexpected error Resource not accessible by personal access token
Error: Process completed with exit code 1.

I was able to resolve this issue by adding the "Pull Requests: Read-only" permission to my token. I believe it might be helpful to mention this requirement in the documentation here.

Here is the setup that worked for me:

Image


Permissions for the Gist badge generation (secret Gist)

Additionally, I encountered another issue related to the Gist feature. I received the following error:

The gist 39cc9832bf323ebb2e7c25a6f0e585b7 does not contain a file dotnet-releaser-coverage-badge-ismailbennani-FacturXDotNet.svg

I resolved it by manually creating the Gist file with the expected name and some dummy content. However, I'm not sure if this is the intended behavior.

Since my Gist is secret, could this be the cause of the issue? If this behavior is expected, perhaps it could also be mentioned as part of the setup instructions in the documentation here.

Thank you in advance for your time and help!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions