-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
ci(fix-security-vulnerability): Use opus 4.6 #19416
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,5 +51,6 @@ jobs: | |
| - Label: "Security" | ||
| - Body: Include the full vulnerability details, your analysis, | ||
| the recommended dismissal reason, and why the alert cannot/should not be fixed. | ||
| model: claude-opus-4-6 | ||
| claude_args: | | ||
| --max-turns 20 --allowedTools "Bash(gh api repos/getsentry/sentry-javascript/dependabot/alerts/*),Bash(gh pr create *),Bash(gh issue create *),Bash(yarn why *),Bash(yarn install*),Bash(yarn dedupe-deps:*),Bash(npm view *),Bash(git checkout *),Bash(git add *),Bash(git commit *),Edit,Write" | ||
| --max-turns 20 --allowedTools "Bash(gh api *repos/getsentry/sentry-javascript/dependabot/alerts/*),Bash(gh pr create *),Bash(gh issue create *),Bash(yarn why *),Bash(yarn install*),Bash(yarn dedupe-deps:*),Bash(npm view *),Bash(git checkout *),Bash(git add *),Bash(git commit *),Edit,Write" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Overly permissive wildcard weakens security tool restrictionMedium Severity The leading Triggered by project rule: PR Review Guidelines for Cursor Bot |
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The
allowedToolspattern forgh apiincludes an unintentional leading wildcard*, making it overly permissive and conflicting with explicit prompt instructions.Severity: MEDIUM
Suggested Fix
Remove the leading wildcard
*from theallowedToolspattern. The pattern should beBash(gh api repos/getsentry/sentry-javascript/dependabot/alerts/*)to strictly enforce the intended command structure and prevent the use of forbidden flags.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.