From 0f821a05500848adde7930e5235b01aeaf2871c2 Mon Sep 17 00:00:00 2001 From: William Bezuidenhout Date: Wed, 13 Dec 2023 15:17:45 +0200 Subject: [PATCH] pr-auditor: use new token (#672) --- .github/workflows/pr-auditor.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-auditor.yml b/.github/workflows/pr-auditor.yml index bdc06f3b..e7ec2d48 100644 --- a/.github/workflows/pr-auditor.yml +++ b/.github/workflows/pr-auditor.yml @@ -3,19 +3,20 @@ name: pr-auditor on: pull_request_target: types: [ closed, edited, opened, synchronize, ready_for_review ] + workflow_dispatch: jobs: check-pr: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'sourcegraph/pr-auditor' - uses: actions/setup-go@v4 - with: { go-version: '1.20' } + with: { go-version: '1.21' } - run: './check-pr.sh' env: GITHUB_EVENT_PATH: ${{ env.GITHUB_EVENT_PATH }} - GITHUB_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ secrets.PR_AUDITOR_TOKEN }} GITHUB_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}