Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
#!/bin/bash # Install Grype # https://github.com/anchore/grype # sudo curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sudo sh -s -- -b /usr/local/bin ONLY_HIGH=${1:-'yes'} echo "ONLY_HIGH: $ONLY_HIGH" GRYPE_ARGS=${2:-'--only-fixed'} echo "GRYPE_ARGS: $GRYPE_ARGS" DOCKER_IMAGES=$(docker ps --format '{{.Image}}') for IMAGE in $DOCKER_IMAGES do echo "Docker image: $IMAGE" if [[ "$ONLY_HIGH" == "yes" ]]; then grype "$IMAGE" "$GRYPE_ARGS" | grep -i High else grype "$IMAGE" "$GRYPE_ARGS" fi echo "================================" done