PR Review #29
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
| name: PR Review | |
| permissions: | |
| contents: read # Required at top-level to give `issue_comment` events access to the secrets below. | |
| # workflow_run is used deliberately here: the unprivileged "PR Review - Trigger" | |
| # workflow runs on the fork PR and this privileged one only consumes its | |
| # artifacts, never checks out or executes fork code. | |
| on: # zizmor: ignore[dangerous-triggers] | |
| issue_comment: | |
| types: [ created ] | |
| workflow_run: | |
| workflows: [ "PR Review - Trigger" ] | |
| types: [ completed ] | |
| jobs: | |
| review: | |
| uses: docker/docker-agent-action/.github/workflows/review-pr.yml@774b6e0e60d6c648b0f2dc43bd5221377a0a7420 # v2.0.2 | |
| permissions: | |
| contents: read # Read repository files and PR diffs | |
| pull-requests: write # Post review comments | |
| issues: write # Create security incident issues if secrets detected | |
| checks: write # (Optional) Show review progress as a check run | |
| id-token: write # Required for OIDC authentication to AWS Secrets Manager | |
| actions: read # Download artifacts from trigger workflow | |
| with: | |
| trigger-run-id: ${{ github.event_name == 'workflow_run' && format('{0}', github.event.workflow_run.id) || '' }} |