Skip to content

vishu42/github-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GITHUB-TOKEN

Get a GitHub token for a GitHub App

Usage:
  github-token [flags]

Flags:
      --app-id int                GitHub App ID
      --app-installation-id int   GitHub App installation ID
      --app-private-key string    GitHub App private key
      --config string             config file (default is $HOME/.github-token.yaml)
  -h, --help                      help for github-token

It stores the token in the file "/tmp/githubtoken/token.txt" and the token is valid for 1 hour. It fetches a new token only if the current stored token is expired. So running the command multiple times does not hammer the GitHub API.

Releases

No releases published

Packages

No packages published

Languages