From db09a6a398eff7c124ef17ad4dea2500239474b5 Mon Sep 17 00:00:00 2001 From: Paul Burlumi Date: Wed, 17 May 2023 23:20:12 +0100 Subject: [PATCH] build(ci): fix first comment github action This fixes the error seen creating a new pull request. --- .github/workflows/pull-request-first-comment.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-request-first-comment.yaml b/.github/workflows/pull-request-first-comment.yaml index 1e264e6a..594fea0f 100644 --- a/.github/workflows/pull-request-first-comment.yaml +++ b/.github/workflows/pull-request-first-comment.yaml @@ -7,14 +7,16 @@ on: jobs: commentCreated: runs-on: ubuntu-latest + permissions: + pull-requests: write environment: action env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: first comment - uses: peter-evans/create-or-update-comment@v2 + uses: peter-evans/create-or-update-comment@v3 with: - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.pull_request.number }} body: | Thank you for contributing with [awesome-go](https://awesome-go.com/), we will revise your contribution as soon as possible.