Skip to content

Commit c0c70cc

Browse files
authored
ci(pr-agent): reduce the contents:write permission to read for security (#9598)
Signed-off-by: M. Fatih Cırıt <mfc@autoware.org>
1 parent 1d96a7f commit c0c70cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pr-agent.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
permissions:
1818
issues: write
1919
pull-requests: write
20-
contents: write
20+
contents: read
2121
name: Run pr agent on every pull request, respond to user comments
2222
steps:
2323
- name: PR Agent action step
@@ -35,6 +35,7 @@ jobs:
3535
config.model_turbo: gpt-4o
3636
config.max_model_tokens: 64000
3737
pr_code_suggestions.max_context_tokens: 12000
38+
# cSpell:ignore commitable
3839
pr_code_suggestions.commitable_code_suggestions: true
3940
pr_reviewer.enable_review_labels_effort: false
4041
pr_reviewer.enable_review_labels_security: false

0 commit comments

Comments
 (0)