0.2.0 • Published 5 years ago

github-token-generator v0.2.0

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

GitHub token generator

To authenticate as a GitHub App, this creates jwt payload and requests the API. The token will be dumped to stdout.

Requirement

These environment variables are required:

  • GITHUB_APP_PRIVATE_KEY
  • GITHUB_APP_APP_ID
  • GITHUB_APP_INSTALLATION_ID

Usage

To authenticate apps for the bot like danger/danger-js with CI. example:

jobs:
  review:
    steps:
      - checkout
      - some_prepare_commands
      - run:
          name: Sending review
          command: |
            export DANGER_GITHUB_APP=1
            export DANGER_GITHUB_API_TOKEN=$(npx github-token-generator)
            npx danger ci
0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago