File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : PR Review
2-
32on :
4- issue_comment :
3+ issue_comment : # Enables /review command in PR comments
54 types : [created]
6- pull_request_review_comment :
5+ pull_request_review_comment : # Captures feedback on review comments for learning
76 types : [created]
8- pull_request_target :
7+ pull_request : # Triggers auto-review on PR open (same-repo branches only; fork PRs use /review)
98 types : [ready_for_review, opened]
109
1110permissions :
12- contents : read
11+ contents : read # Required at top-level to give `issue_comment` events access to the secrets below.
1312
1413jobs :
1514 review :
16- uses : docker/cagent-action/.github/workflows/review-pr.yml@3a12dbd0c6cd7dda3d4e05f24f0143c9701456de # latest (v1.2.13)
15+ uses : docker/cagent-action/.github/workflows/review-pr.yml@dba0ca51938c78afb363625363c50582243218d6 # v1.3.1
16+ # Scoped to the job so other jobs in this workflow aren't over-permissioned
1717 permissions :
18- contents : read
19- pull-requests : write
20- issues : write
21- checks : write
22- secrets : inherit
18+ contents : read # Read repository files and PR diffs
19+ pull-requests : write # Post review comments and approve/request changes
20+ issues : write # Create security incident issues if secrets are detected in output
21+ checks : write # (Optional) Show review progress as a check run on the PR
22+ secrets :
23+ ANTHROPIC_API_KEY : ${{ secrets.ANTHROPIC_API_KEY }}
24+ CAGENT_ORG_MEMBERSHIP_TOKEN : ${{ secrets.CAGENT_ORG_MEMBERSHIP_TOKEN }} # PAT with read:org scope; gates auto-reviews to org members only
25+ CAGENT_REVIEWER_APP_ID : ${{ secrets.CAGENT_REVIEWER_APP_ID }} # GitHub App ID; reviews appear as your app instead of github-actions[bot]
26+ CAGENT_REVIEWER_APP_PRIVATE_KEY : ${{ secrets.CAGENT_REVIEWER_APP_PRIVATE_KEY }} # GitHub App private key; paired with App ID above
You can’t perform that action at this time.
0 commit comments