Skip to content

Commit 8b1b707

Browse files
authored
Update pr-review.yml
Signed-off-by: Derek Misler <derek.misler@docker.com>
1 parent eb9c16b commit 8b1b707

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/pr-review.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,22 @@ on:
55
types: [created]
66
pull_request_review_comment:
77
types: [created]
8-
pull_request_target:
8+
pull_request:
99
types: [ready_for_review, opened]
1010

1111
permissions:
1212
contents: read
13-
pull-requests: write
14-
issues: write
1513

1614
jobs:
1715
review:
1816
uses: docker/cagent-action/.github/workflows/review-pr.yml@d98096f432f2aea5091c811852c4da804e60623a # v1.4.1
19-
secrets: inherit
17+
# Scoped to the job so other jobs in this workflow aren't over-permissioned
18+
permissions:
19+
contents: read # Read repository files and PR diffs
20+
pull-requests: write # Post review comments and approve/request changes
21+
issues: write # Create security incident issues if secrets are detected in output
22+
checks: write # (Optional) Show review progress as a check run on the PR
23+
id-token: write # Required for OIDC authentication to AWS Secrets Manager
2024
with:
2125
add-prompt-files: STYLE.md,COMPONENTS.md
2226
additional-prompt: |

0 commit comments

Comments
 (0)