Categorygithub.com/mercari/github-app-token-generator
modulepackage
1.0.2
Repository: https://github.com/mercari/github-app-token-generator.git
Documentation: pkg.go.dev

# README

GitHub App Token Generator

Description

A simple github action written in go to retrieve an installation access token for an app installed into an organization.

Usage

name: Checkout repos
on: push
jobs:
  checkout:
    runs-on: ubuntu-latest
    steps:
    - uses: mercari/github-app-token-generator@v1
      id: get-token
      with:
        app-private-key: ${{ secrets.APP_PRIVATE_KEY }}
        app-id: ${{ secrets.APP_ID }}
        app-installation-id: ${{ secrets.APP_INSTALLATION_ID}}
        
    - name: Check out an other repo
      uses: actions/checkout@v2
      with:
        repository: owner/repo
        token: ${{ steps.get-token.outputs.token }}

Inputs

InputDescriptionRequired?Type
app-idGitHub App IDnumber
app-installation-idID of the app installation to your organizationnumber
app-private-keyPrivate key of your GitHub Appstring

Outputs

OutputDescriptionType
tokenGenerated short-live tokenstring

Contributions

Please read the CLA carefully before submitting your contribution to Mercari. Under any circumstances, by submitting your contribution, you are deemed to accept and agree to be bound by the terms and conditions of the CLA.

License

Copyright 2022 Mercari, Inc.

Licensed under the MIT License.

Credits

This was originally developed by mlioo/go-github-app-token-generator.