diff --git a/.github/actions/pr-comment/action.yml b/.github/actions/pr-comment/action.yml index 9ff0509b9e..b7f9bb12da 100644 --- a/.github/actions/pr-comment/action.yml +++ b/.github/actions/pr-comment/action.yml @@ -5,6 +5,9 @@ inputs: name: description: 'Artifact name to import comment data from.' required: true + token: + description: 'A Github PAT' + required: true runs: using: composite @@ -13,7 +16,7 @@ runs: with: run-id: ${{ github.event.workflow_run.id }} name: ${{ inputs.name }} - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ inputs.token }} - id: pr-number shell: bash diff --git a/.github/workflows/bench-comment.yml b/.github/workflows/bench-comment.yml index 50e579302f..f953465713 100644 --- a/.github/workflows/bench-comment.yml +++ b/.github/workflows/bench-comment.yml @@ -23,3 +23,4 @@ jobs: - uses: ./.github/actions/pr-comment with: name: bench + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/qns-comment.yml b/.github/workflows/qns-comment.yml index bc50ac471b..f1b29184aa 100644 --- a/.github/workflows/qns-comment.yml +++ b/.github/workflows/qns-comment.yml @@ -26,3 +26,4 @@ jobs: - uses: ./.github/actions/pr-comment with: name: qns + token: ${{ secrets.GITHUB_TOKEN }}