From ca8f7ff7be15f4067e9ea858febb080a7e9c46f7 Mon Sep 17 00:00:00 2001 From: bduranleau-nr <106178551+bduranleau-nr@users.noreply.github.com> Date: Fri, 10 May 2024 13:20:20 -0500 Subject: [PATCH] ci: fix gh-cli token propagation (#894) --- .github/workflows/bug-report-response.yml | 2 ++ .github/workflows/issue-comment.yml | 5 ++++- .github/workflows/issue-support-label.yml | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bug-report-response.yml b/.github/workflows/bug-report-response.yml index e37ec5b65..41fe6ad22 100644 --- a/.github/workflows/bug-report-response.yml +++ b/.github/workflows/bug-report-response.yml @@ -13,6 +13,8 @@ jobs: bug-report-response: if: github.event.label.name == 'bug' && github.event.issue.state == 'open' uses: ./.github/workflows/issue-comment.yml + secrets: + token: ${{ secrets.ISSUE_BOT_TOKEN }} with: issue-number: ${{ github.event.issue.number }} message: > diff --git a/.github/workflows/issue-comment.yml b/.github/workflows/issue-comment.yml index b0a79f35e..cd72f7874 100644 --- a/.github/workflows/issue-comment.yml +++ b/.github/workflows/issue-comment.yml @@ -13,12 +13,15 @@ on: message: type: string required: true + secrets: + token: + required: true jobs: post-comment: runs-on: ubuntu-latest env: - GH_TOKEN: ${{ secrets.ISSUE_BOT_TOKEN }} + GH_TOKEN: ${{ secrets.token }} steps: - name: respond to issue run: | diff --git a/.github/workflows/issue-support-label.yml b/.github/workflows/issue-support-label.yml index 5f19de221..af28184f5 100644 --- a/.github/workflows/issue-support-label.yml +++ b/.github/workflows/issue-support-label.yml @@ -13,6 +13,8 @@ jobs: support-response: if: github.event.label.name == 'support' && github.event.issue.state == 'open' uses: ./.github/workflows/issue-comment.yml + secrets: + token: ${{ secrets.ISSUE_BOT_TOKEN }} with: issue-number: ${{ github.event.issue.number }} message: >