From b47ef6af2643deab605b4791b2f655061a9cd4e4 Mon Sep 17 00:00:00 2001 From: Przemek Rzad Date: Wed, 18 Oct 2023 10:32:39 +0200 Subject: [PATCH] Update rfc-action.yml --- .github/workflows/rfc-action.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rfc-action.yml b/.github/workflows/rfc-action.yml index 689a6768d..5ebdb3ffc 100644 --- a/.github/workflows/rfc-action.yml +++ b/.github/workflows/rfc-action.yml @@ -4,16 +4,18 @@ on: issue_comment: types: [created] -permissions: - pull-requests: write - contents: write - jobs: rfc-action: name: Handle an RFC-relate command in a RFC proposal PR if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/rfc') }} runs-on: ubuntu-latest steps: + - name: Generate a token + id: generate_token + uses: actions/create-github-app-token@v1 + with: + app_id: ${{ secrets.RFC_BOT_APP_ID }} + private_key: ${{ secrets.RFC_BOT_PRIVATE_KEY }} - uses: paritytech/rfc-action@main - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + env: + GH_TOKEN: ${{ steps.generate_token.outputs.token }}