fix: Filter bare 'latest' and fix vlatest tag in image discovery
ci/woodpecker/push/security-scan Pipeline failed

This commit is contained in:
2026-03-25 18:04:30 +01:00
parent 9b6988015d
commit f84ae78ade
+2 -1
View File
@@ -26,7 +26,8 @@ steps:
| sed 's/\$${[^}]*:-\([^}]*\)}/\1/g' \
| sed 's/\$${[^}]*}//g' \
| sed 's/{{ *[a-z_]* *}}/latest/g' \
| grep -v '^$$' | grep -v 'cmd:' | grep -v '{' \
| grep -v '^$$' | grep -v '^latest$$' | grep -v 'cmd:' | grep -v '{' \
| sed 's/:vlatest/:latest/g' \
| sort -u > /tmp/images.txt
echo "Found images to scan:"
cat /tmp/images.txt