gh-token icon indicating copy to clipboard operation
gh-token copied to clipboard

Add --repository parameter

Open chamburr opened this issue 2 years ago • 2 comments

Add parameter to specify repository instead of GitHub App installation ID for generating tokens.

chamburr avatar Feb 10 '24 09:02 chamburr

@chamburr can you expand a little bit on the problem you're trying to solve with this?

Link- avatar Mar 06 '24 09:03 Link-

@Link- I am running gh-token inside CI, and I want to get a token that can access some repository. Instead of finding and specifying the installation ID for each repository, this feature lets me pass the repository name as a parameter. In general, when there are multiple installations, the two-step process of finding the installation ID and then generating the token is simplified to one. Does that make sense?

chamburr avatar Mar 06 '24 11:03 chamburr