Drone plugins > Github App
github.svg

Github App

by rssnyder


A plugin to get a jwt or installation token for a github app.

Example

kind: pipeline
name: default

steps:
- name: run rssnyder/drone-github-app plugin
  image: rssnyder/drone-github-app
  pull: if-not-exists
  settings:
    APP_ID: "264043"
    INSTALLATION: "31437931"
    PEM_B64:
      from_secret: github_app_b64
    JSON_FILE: output.json

Properties

  • app_id

    stringrequired

    github app id

    Default: none

  • pem

    stringoptional

    rsa private key

    Secret recommended

    Default: none

  • pem_file

    stringoptional

    local file path of rsa private key

    Secret recommended

    Default: none

  • pem_b64

    stringoptional

    local file path of base64 encoded rsa private key

    Secret recommended

    Default: none

  • installation

    stringoptional

    installation id

    Default: none

  • jwt_file

    stringoptional

    output file for jwt

    Default: none

  • token_file

    stringoptional

    output file for token

    Default: none

  • json_file

    stringoptional

    output file for both jwt and token in json

    Default: none