New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github-token-generator

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-token-generator

generate github token

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 09 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc