Skip to content

Commit

Permalink
fix: GitHub checkout token must be provided as input (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMarquis authored Sep 29, 2023
1 parent 779a7b0 commit a39d68c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/dependencyguard-baseline/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
token: ${{ secrets.PAT_SPARK || secrets.GITHUB_TOKEN }}
token: ${{ inputs.github-token }}
- if: ${{ inputs.pr-number }} != ''
run: gh pr checkout "${{ inputs.pr-number }}"
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/paparazzi-golden-images/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
- uses: actions/checkout@v3
with:
lfs: true
token: ${{ secrets.PAT_SPARK || secrets.GITHUB_TOKEN }}
token: ${{ inputs.github-token }}
- if: ${{ inputs.pr-number }} != ''
run: gh pr checkout "${{ inputs.pr-number }}"
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/chat-bot-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
if: github.event.issue.pull_request && contains(github.event.comment.body, 'paparazzi golden images')
uses: ./.github/actions/paparazzi-golden-images
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.PAT_SPARK || secrets.GITHUB_TOKEN }}
pr-number: ${{ github.event.issue.number }}

- name: DependencyGuardBaseline
if: github.event.issue.pull_request && contains(github.event.comment.body, 'dependencyGuardBaseline')
uses: ./.github/actions/dependencyguard-baseline
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.PAT_SPARK || secrets.GITHUB_TOKEN }}
pr-number: ${{ github.event.issue.number }}

0 comments on commit a39d68c

Please sign in to comment.