sourcegraph/.github/workflows/pr-auditor.yml
William Bezuidenhout 07e59761d2
pr-auditor: use pr-auditor from devx-service (#63847)
Updates PR-auditor to use the PR-auditor from the devx-service

## Test plan
Once merged, this
[PR](https://github.com/sourcegraph/sourcegraph/pull/63846) should fail
2024-07-16 11:10:36 +02:00

28 lines
823 B
YAML

name: pr-auditor
on:
pull_request_target:
types: [ closed, edited, opened, synchronize, ready_for_review ]
jobs:
check-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: 'sourcegraph/devx-service'
token: ${{ secrets.PR_AUDITOR_TOKEN }}
- uses: actions/setup-go@v4
with: { go-version: '1.22' }
- run: 'go run ./cmd/pr-auditor'
env:
GITHUB_EVENT_PATH: ${{ env.GITHUB_EVENT_PATH }}
GITHUB_TOKEN: ${{ secrets.PR_AUDITOR_TOKEN }}
GITHUB_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
report_failure:
needs: check-pr
if: ${{ failure() }}
uses: sourcegraph/sourcegraph/.github/workflows/report-job-failure.yml@main
secrets: inherit