Skip to content

Commit

Permalink
Pass PAT into composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Mar 12, 2024
1 parent 97c33d4 commit 5c72890
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/pr-comment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/bench-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ jobs:
- uses: ./.github/actions/pr-comment
with:
name: bench
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/qns-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ jobs:
- uses: ./.github/actions/pr-comment
with:
name: qns
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5c72890

Please sign in to comment.