Skip to content

Setting up permissions and workflow tokens [WIP]

Simon Liu edited this page Sep 8, 2020 · 1 revision

Issue reference #83

Context

What problems do we need to solve?

What is a GitHub App?

Steps

1 | Creating a GitHub App in your organization

2 | Transfer credentials to your organization/repository

3 | Grant permissions

4 | Auxiliary workflow

- id: auth
  uses: jnwng/github-app-installation-token-action@v1
  with:
    appId: ${{ secrets.GITHUB_APP_ID }}
    installationId: ${{ secrets.GITHUB_APP_INSTALLATION_ID }}
    privateKey: ${{ secrets.GITHUB_PRIVATE_KEY }}
- uses: actions/checkout@master
- name: Apply herald rules
  uses: gagoar/[email protected]
  with:
    GITHUB_TOKEN: ${{ steps.auth.outputs.token }}
    rulesLocation: herald_rules/*.json