Skip to content

Commit a3029c3

Browse files
committed
Check that the release tag has the expected format
1 parent 46cafbc commit a3029c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/update-proxy-release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ jobs:
2121
env:
2222
RELEASE_TAG: ${{ inputs.tag || 'codeql-bundle-v2.22.0' }}
2323
steps:
24+
- name: Check release tag format
25+
shell: bash
26+
run: |
27+
if ! [[ $RELEASE_TAG =~ "^codeql-bundle-v[0-9]+\.[0-9]+\.[0-9]+$" ]]; then
28+
echo "Invalid release tag: expected a CodeQL bundle tag in the 'codeql-bundle-vM.N.P' format."
29+
exit 1
30+
fi
31+
2432
- name: Install Node
2533
uses: actions/setup-node@v4
2634

0 commit comments

Comments
 (0)