We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39d1ef7 commit ef59de6Copy full SHA for ef59de6
1 file changed
.github/workflows/fix-security-vulnerability.yml
@@ -32,7 +32,13 @@ jobs:
32
id: alert
33
run: |
34
INPUT="${{ github.event.inputs.alert }}"
35
- echo "number=${INPUT##*/}" >> "$GITHUB_OUTPUT"
+ RAW="${INPUT##*/}"
36
+ NUMBER="${RAW%%\?*}"
37
+ if ! [[ "$NUMBER" =~ ^[0-9]+$ ]]; then
38
+ echo "Error: Could not extract a valid numeric alert ID from input: $INPUT"
39
+ exit 1
40
+ fi
41
+ echo "number=$NUMBER" >> "$GITHUB_OUTPUT"
42
43
- uses: anthropics/claude-code-action@v1
44
with:
0 commit comments