Skip to content

Commit 272a6d0

Browse files
update pr-auditor token to use secret instead (#960)
Co-authored-by: William Bezuidenhout <[email protected]>
1 parent fb6dc7e commit 272a6d0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/pr-auditor.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@ name: pr-auditor
33
on:
44
pull_request_target:
55
types: [ closed, edited, opened, synchronize, ready_for_review ]
6+
workflow_dispatch:
67

78
jobs:
89
check-pr:
910
runs-on: ubuntu-latest
1011
steps:
11-
- uses: actions/checkout@v3
12-
with: { repository: 'sourcegraph/pr-auditor' }
12+
- uses: actions/checkout@v4
13+
with:
14+
repository: 'sourcegraph/pr-auditor'
1315
- uses: actions/setup-go@v4
14-
with: { go-version: '1.20' }
16+
with: { go-version: '1.21' }
1517

1618
- run: './check-pr.sh'
1719
env:
1820
GITHUB_EVENT_PATH: ${{ env.GITHUB_EVENT_PATH }}
19-
GITHUB_TOKEN: ${{ github.token }}
21+
GITHUB_TOKEN: ${{ secrets.PR_AUDITOR_TOKEN }}
2022
GITHUB_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 commit comments

Comments
 (0)