From 5c7289070e60ff1b2138ffeafbf2866e389ce391 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Tue, 12 Mar 2024 16:48:15 +0200 Subject: [PATCH] Pass PAT into composite action --- .github/actions/pr-comment/action.yml | 5 ++++- .github/workflows/bench-comment.yml | 1 + .github/workflows/qns-comment.yml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) 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 }}