-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(ci): Add security vulnerability skill action #19355
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
base: develop
Are you sure you want to change the base?
Changes from all commits
ccd35f9
4b02e8d
4d08691
4035030
f99bf8e
60b1999
c5b5389
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 |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: Fix Security Vulnerability | ||
|
|
||
| on: | ||
| dependabot_alert: | ||
| types: [created] | ||
| workflow_dispatch: | ||
| inputs: | ||
| alert: | ||
| description: | ||
| 'Dependabot alert number or URL (e.g. 1046 or | ||
| https://github.com/getsentry/sentry-javascript/security/dependabot/1046)' | ||
| required: true | ||
|
|
||
| concurrency: | ||
| group: fix-security-vuln-${{ github.event.alert.number || github.event.inputs.alert }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| fix-vulnerability: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| security-events: read | ||
| issues: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: develop | ||
|
|
||
| - uses: anthropics/claude-code-action@v1 | ||
| with: | ||
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| prompt: | | ||
| /fix-security-vulnerability ${{ github.event.alert.number || github.event.inputs.alert }} | ||
|
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. Unsanitized input interpolated directly into AI promptMedium Severity The Additional Locations (1)Triggered by project rule: PR Review Guidelines for Cursor Bot |
||
|
|
||
| IMPORTANT: Do NOT dismiss any alerts. Do NOT wait for approval. | ||
sentry[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| If you can fix the vulnerability: | ||
| Create a branch, apply the fix, and open a PR with your analysis | ||
| in the PR description. Target the develop branch. | ||
|
|
||
| If you determine the alert should NOT be fixed: | ||
| Do NOT dismiss the alert. Instead, open a GitHub issue with: | ||
| - Title: "Security: Dismiss Dependabot alert #<number> - <package-name>" | ||
| - Label: "Security" | ||
| - Body: Include the full vulnerability details, your analysis, | ||
| the recommended dismissal reason, and why the alert cannot/should not be fixed. | ||
| claude_args: | | ||
| --max-turns 20 --allowedTools "Bash(gh api *),Bash(gh pr create *),Bash(gh issue create *),Bash(yarn why *),Bash(yarn install*),Bash(yarn dedupe-deps:*),Bash(npm view *),Bash(git *)" | ||


Uh oh!
There was an error while loading. Please reload this page.