Skip to content

Commit a67374f

Browse files
authored
ci(fix-security-vulnerability): Run fetch alert first before executing skill (#19418)
Closes #19419 (added automatically)
1 parent 89ff8a8 commit a67374f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/fix-security-vulnerability.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,24 @@ jobs:
2828
with:
2929
ref: develop
3030

31+
- name: Extract alert number
32+
id: alert
33+
run: |
34+
INPUT="${{ github.event.inputs.alert }}"
35+
echo "number=${INPUT##*/}" >> "$GITHUB_OUTPUT"
36+
3137
- uses: anthropics/claude-code-action@v1
3238
with:
3339
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
3440
prompt: |
41+
YOUR FIRST ACTION - run this exact command before anything else:
42+
gh api repos/getsentry/sentry-javascript/dependabot/alerts/${{ steps.alert.outputs.number }}
43+
44+
Then use the output to follow the skill instructions below.
45+
3546
/fix-security-vulnerability ${{ github.event.inputs.alert }}
3647
3748
IMPORTANT: Do NOT dismiss any alerts. Do NOT wait for approval.
38-
39-
IMPORTANT: To fetch the alert, use EXACTLY this command format (replacing <number> with the alert number):
40-
gh api repos/getsentry/sentry-javascript/dependabot/alerts/<number>
41-
Do NOT use --paginate, query parameters, GraphQL, curl, or any other approach.
4249
Your allowed tools are narrowly scoped - only the exact command patterns listed will be permitted.
4350
4451
If you can fix the vulnerability:

0 commit comments

Comments
 (0)