fix image rm
This commit is contained in:
@@ -45,6 +45,9 @@ jobs:
|
|||||||
trivy image --no-progress --severity HIGH,CRITICAL \
|
trivy image --no-progress --severity HIGH,CRITICAL \
|
||||||
--format json "${NAME}:latest" \
|
--format json "${NAME}:latest" \
|
||||||
> "/tmp/image-scan-${NAME}.json" || true
|
> "/tmp/image-scan-${NAME}.json" || true
|
||||||
|
|
||||||
|
echo "Removing image: ${NAME}"
|
||||||
|
docker rmi -f "${NAME}:latest" || true
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Generate and publish security report to wiki
|
- name: Generate and publish security report to wiki
|
||||||
|
|||||||
Reference in New Issue
Block a user