Skip to content

Self hosting without using GitHub Personal Access Token #8790

Answered by chris48s
SayakMukhopadhyay asked this question in Q&A
Discussion options

You must be logged in to vote

Hello. The GH_CLIENT_ID and GH_CLIENT_SECRET settings are only used by shields.io for configuring our GitHub OAuth app ( https://img.shields.io/github-auth ) which allows users to donate a token (with read-only access to public repos) and increase our rate limit. These settings are not generally used for self-hosted installs. See the docs at

https://github.com/badges/shields/blob/a0149a8f8f9f2be4f8286a6e267e12aab9d1e8ab/doc/server-secrets.md?plain=1#L143-L148C50

To access private repos from a self-hosted install, you will need to use a PAT. If you want to constrain the scope of that token as much as possible, I think you should be able to generate a fine-grained PAT which has read-only ac…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SayakMukhopadhyay
Comment options

@SayakMukhopadhyay
Comment options

@chris48s
Comment options

Answer selected by SayakMukhopadhyay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
self-hosting Discussion, problems, features, and documentation related to self-hosting Shields
2 participants