← 全部工具

github-app-installation-token

热度 65 更新于 开发与构建

npm/script and binary 📦 to get a token from a GitHub App

npmauto-collected

安装

npm
npm install -g github-app-installation-token

通过 npm 安装。

<p align="center" <a href="https://www.npmjs.com/package/github-app-installation-token" <img src="https://img.shields.io/npm/v/github-app-installation-token/latest.svg?style=flat-square" alt="NPM Version" / </a <a href="https://codecov.io/gh/gagoar/github-app-installation-token" <img src="https://codecov.io/gh/gagoar/github-app-installation-token/branch/main/graph/badge.svg?token=E9CdygqJc4"/ </a <a href="https://github.com/gagoar/github-app-installation-token/blob/main/LICENSE" <img src="https://img.shields.io/npm/l/github-app-installation-token.svg?style=flat-square" alt="MIT license" / </a <a href="https://deepsource.io/gh/gagoar/github-app-installation-token/?ref=repository-badge" target="blank"<img alt="DeepSource" title="DeepSource" src="https://deepsource.io/gh/gagoar/github-app-installation-token.svg/?label=active+issues&showtrend=true"/ </a <h3 align="center"Github App Installation Token</h3

<p align="center" npm/cli and binary 📦 to generate a token from GitHub Apps. <br / <a href="https://github.com/gagoar/github-app-installation-token#table-of-contents"<strongExplore the docs »</strong</a <br / <a href="https://github.com/gagoar/github-app-installation-token/issues"Report Bug</a · <a href="https://github.com/gagoar/github-app-installation-token/issues"Request Feature</a </p </p

Table of Contents

  • Built With
  • Installation and use
  • NPX
  • NPM
  • YARN
  • GitHub Workflow
  • Binary
  • Programmatically
  • Contributing
  • License

Getting Started

GitHub Apps are the most powerful entity in the GitHub universe today. These Apps allow you to change a PR, add checks to a commit, trigger workflows and even (with the right permissions) commit code! But The tricky thing is, You need to generate a token every time you you want to use them.

This npm package / command line tool / binary will do just that!

Installation and Use

You can install and use this package in different ways:

NPX

   npx github-app-installation-token \
      --appId <APP_ID> \
      --installationId <INSTALLATION_ID> \
      --privateKeyLocation <path/to/the/private.pem>

NPM (global)

  npm -g install github-app-installation-token

  npm run github-app-installation-token \
      --appId <APP_ID> \
      --installationId <INSTALLATION_ID> \
      --privateKeyLocation <path/to/the/private.pem>

YARN (global)

  yarn global add github-app-installation-token

  github-app-installation-token \
      --appId <APP_ID> \
      --installationId <INSTALLATION_ID> \
      --privateKeyLocation <path/to/the/private.pem>

Programmatically