This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
IMAGES=$(kubectl get pods --all-namespaces -o json | jq -r '.items[].spec.containers[].image' | sort |uniq) | |
SYFT_BIN="podman run -v ${PWD}:/workdir -w /workdir docker.io/anchore/syft:latest" | |
GRYPE_BIN="podman run -v ${PWD}:/workdir -w /workdir docker.io/anchore/grype:latest" | |
for IMAGE in ${IMAGES}; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
## Creates explicit dirs on the bucket | |
## | |
function print_help() { | |
echo "Usage:" $(basename $0) bucket_mounted_dir | |
exit 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cat <<EOF-HANDLER > /usr/bin/goconvey-handler | |
#!/usr/bin/env bash | |
request="\${1#*://}" # Remove schema from url (goconvey://) | |
request="\${request#*?url=}" # Remove open?url= | |
request="\${request#*://}" # Remove file:// | |
request="\${request//%2F//}" # Replace %2F with / | |
request="\${request/&line=/:}" # Replace &line= with : |