fix: Filter bare 'latest' and fix vlatest tag in image discovery
ci/woodpecker/push/security-scan Pipeline failed
ci/woodpecker/push/security-scan Pipeline failed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user