ci(pr-leakage): add reusable workflow that scans PRs for customer-data leaks #113
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| pull_request_target: | |
| workflow_call: | |
| inputs: | |
| review_prompt: | |
| description: "Review prompt profile to use: connector or general" | |
| required: false | |
| default: connector | |
| type: string | |
| concurrency: | |
| group: pr-review-${{ github.workflow_ref }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| pr-review: | |
| if: github.repository != 'ConductorOne/github-workflows' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| steps: | |
| - name: Checkout PR base | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.event.pull_request.base.sha }} | |
| persist-credentials: false | |
| - name: Run PR Review | |
| uses: ConductorOne/github-workflows/.github/actions/pr-review@main | |
| with: | |
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| pr_number: ${{ github.event.pull_request.number }} | |
| review_prompt: ${{ inputs.review_prompt || 'connector' }} | |
| timeout-minutes: 15 |