Skip to content

Commit 59b52a4

Browse files
author
Maxim Konovalenko
committed
fix regexp
Signed-off-by: Maxim Konovalenko <maxim.konovalenko@flant.com>
1 parent a985230 commit 59b52a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cve_scan/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ runs:
207207
if [ "${TAG}" != "${{ github.event.repository.default_branch }}" ]; then
208208
if [ "${TAG_TYPE}" == "release" ]; then
209209
# if some specific release is defined - scan only it
210-
if echo "${TAG}"|grep -q "^[0-9]+\.[0-9]+$"; then
210+
if echo "${TAG}"|grep -qE "^[0-9]+\.[0-9]+$"; then
211211
module_tags=($(crane ls "${PROD_REGISTRY_MODULE_BASEDIR}/${MODULE_NAME}" | grep "^v${TAG}\.[0-9]*$" | sort -V -r | head -n 1))
212212
else
213213
echo "ERROR: Please specify required release in the following format: [0-9]+\.[0-9]+"

0 commit comments

Comments
 (0)