Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another grype check, this one a bit more thorough. Looks for SBOM via IMAGE_FILE_SBOM="sbom/${IMAGE_FILE_BASE}.sbom.json" #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Montana
Copy link

@Montana Montana commented Mar 10, 2023

No description provided.

… `IMAGE_FILE_SBOM="sbom/${IMAGE_FILE_BASE}.sbom.json"`

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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clever to leave SYFT_BIN in.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not really that clever given this should be checked and is clearly defined in Anchore's policy.


set -euo pipefail

IMAGES=$(kubectl get pods --all-namespaces -o json | jq -r '.items[].spec.containers[].image' | sort |uniq)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greet job on naming all json spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants