Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 646 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 646 Bytes

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.