Skip to content

Commit 5d2db35

Browse files
authored
Merge branch 'develop' into isaacschlueter/js-1765-vulnerable-dependency-minimatch
2 parents 033e930 + 218ad4f commit 5d2db35

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ jobs:
3232
id: alert
3333
run: |
3434
INPUT="${{ github.event.inputs.alert }}"
35-
echo "number=${INPUT##*/}" >> "$GITHUB_OUTPUT"
35+
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"
3642
3743
- uses: anthropics/claude-code-action@v1
3844
with:

0 commit comments

Comments
 (0)