Skip to content

Commit ccd35f9

Browse files
committed
add security vulnerability action
1 parent e600901 commit ccd35f9

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Fix Security Vulnerability
2+
3+
on:
4+
dependabot_alert:
5+
types: [created]
6+
workflow_dispatch:
7+
inputs:
8+
alert:
9+
description: 'Dependabot alert number or URL (e.g. 1046 or https://github.com/getsentry/sentry-javascript/security/dependabot/1046)'
10+
required: true
11+
12+
concurrency:
13+
group: fix-security-vuln-${{ github.event.alert.number || github.event.inputs.alert }}
14+
cancel-in-progress: false
15+
16+
jobs:
17+
fix-vulnerability:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: write
21+
pull-requests: write
22+
issues: write
23+
security-events: read
24+
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
ref: develop
28+
29+
- uses: anthropics/claude-code-action@v1
30+
with:
31+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
32+
prompt: |
33+
/fix-security-vulnerability ${{ github.event.alert.number || github.event.inputs.alert }}
34+
35+
IMPORTANT: Do NOT dismiss any alerts. Do NOT wait for approval.
36+
Create a branch, apply the fix, and open a PR with your analysis
37+
in the PR description. Target the develop branch.
38+
claude_args: "--max-turns 20"

0 commit comments

Comments
 (0)