Skip to content

Commit 9112c97

Browse files
penul4ikMaxim Konovalenko
andauthored
[CVE Scan] Fix regexp for CVE_Scan for release tags (#54)
* add echo Signed-off-by: Maxim Konovalenko <maxim.konovalenko@flant.com> * add echo Signed-off-by: Maxim Konovalenko <maxim.konovalenko@flant.com> * fix regexp for release tags Signed-off-by: Maxim Konovalenko <maxim.konovalenko@flant.com> * fix regexp for release tags Signed-off-by: Maxim Konovalenko <maxim.konovalenko@flant.com> --------- Signed-off-by: Maxim Konovalenko <maxim.konovalenko@flant.com> Co-authored-by: Maxim Konovalenko <maxim.konovalenko@flant.com>
1 parent 10a5467 commit 9112c97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/CVE_Scan.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
fi
8585
echo "Getting tags to scan"
8686
# Check if provided tag is a semver minor, and if so - get image from prod registry
87-
if echo "${TAG}" | grep -q "[0-9]*\.[0-9]*"; then
87+
if echo "${TAG}" | grep -qE "[0-9]+\.[0-9]+"; then
8888
module_tags=($(crane ls "${PROD_REGISTRY_MODULE_BASEDIR}/${MODULE_NAME}" | grep "^v${TAG}\.[0-9]*" | sort -V -r | head -n 1))
8989
fi
9090
if [ "${SCAN_SEVERAL_LASTEST_RELEASES}" == "true" ]; then

0 commit comments

Comments
 (0)