Skip to content

What scopes does the token need to access GitHub contributors on a private repository?Β #75

@zigelboim-misha

Description

@zigelboim-misha

It took me some trial and errors to get the contributors icons to appear on my mkdocs docs.

I had to play with the scopes on my token to make it work.
Maybe I have missed the documentation on it, please let me know and comment a link :)

Could add more detailed documentation about the Select scopes the token needs to read contributors?

uncheck everything when creating the GitHub Token at github.com/settings/personal-access-tokens/new, unless you access private repositories.

For private GitHub repositories, you only need to allow read-only access to Contents and Metadata on the target repository. This could be done by setting Read-only access of Permissions > Repository permissions > Contents.

source

I did not understand where do I find this setting or how is it connected to the access token I have to provide.

Maybe you could add this image to the docs or explicitly mention the scopes required for the token to allow mkdocs access contributors on a private repository?

Screenshot 2024-10-14 at 15 45 54

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions