Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(pr-agent): reduce the contents:write permission to read for security #9598

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading