github-token-generator

0.2.0 • Public • Published

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i github-token-generator

    Weekly Downloads

    0

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    3.71 kB

    Total Files

    5

    Last publish

    Collaborators

    • ryonkmr