File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments