Skip to content

Commit

Permalink
ci(pr-agent): reduce the contents:write permission to read for securi…
Browse files Browse the repository at this point in the history
…ty (#9598)

Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
xmfcx authored Dec 10, 2024
1 parent 1d96a7f commit c0c70cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pr-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
permissions:
issues: write
pull-requests: write
contents: write
contents: read
name: Run pr agent on every pull request, respond to user comments
steps:
- name: PR Agent action step
Expand All @@ -35,6 +35,7 @@ jobs:
config.model_turbo: gpt-4o
config.max_model_tokens: 64000
pr_code_suggestions.max_context_tokens: 12000
# cSpell:ignore commitable
pr_code_suggestions.commitable_code_suggestions: true
pr_reviewer.enable_review_labels_effort: false
pr_reviewer.enable_review_labels_security: false

0 comments on commit c0c70cc

Please sign in to comment.