diff --git a/.github/workflows/fix-security-vulnerability.yml b/.github/workflows/fix-security-vulnerability.yml index 3812fff98769..8edd1447ca9b 100644 --- a/.github/workflows/fix-security-vulnerability.yml +++ b/.github/workflows/fix-security-vulnerability.yml @@ -28,17 +28,24 @@ jobs: with: ref: develop + - name: Extract alert number + id: alert + run: | + INPUT="${{ github.event.inputs.alert }}" + echo "number=${INPUT##*/}" >> "$GITHUB_OUTPUT" + - uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} prompt: | + YOUR FIRST ACTION - run this exact command before anything else: + gh api repos/getsentry/sentry-javascript/dependabot/alerts/${{ steps.alert.outputs.number }} + + Then use the output to follow the skill instructions below. + /fix-security-vulnerability ${{ github.event.inputs.alert }} IMPORTANT: Do NOT dismiss any alerts. Do NOT wait for approval. - - IMPORTANT: To fetch the alert, use EXACTLY this command format (replacing with the alert number): - gh api repos/getsentry/sentry-javascript/dependabot/alerts/ - Do NOT use --paginate, query parameters, GraphQL, curl, or any other approach. Your allowed tools are narrowly scoped - only the exact command patterns listed will be permitted. If you can fix the vulnerability: