Skip to content

Commit 7f4f714

Browse files
syaghoubi00audgirka
authored andcommitted
feat: add sbom to container images
Uses the `--sbom=true` flag to attach a `syft` SBOM to the manifest Closes: #451 Signed-off-by: Sebastian Yaghoubi <[email protected]>
1 parent b83147c commit 7f4f714

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: tools/devspaces.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ln -f tools/setup-image.sh devspaces/context
2222
# we force use of linux/amd64 platform because source image supports only this
2323
# platform and without it, it will fail to cross-build when task runs on arm64.
2424
# --metadata-file=out/devspaces.meta --no-cache
25-
$ADT_CONTAINER_ENGINE buildx build --tag=$IMAGE_NAME --platform=linux/amd64 devspaces/context -f devspaces/Containerfile
25+
$ADT_CONTAINER_ENGINE buildx build --tag=$IMAGE_NAME --platform=linux/amd64 devspaces/context -f devspaces/Containerfile --sbom=true
2626

2727
mk containers check $IMAGE_NAME --engine="${ADT_CONTAINER_ENGINE}" --max-size=1600 --max-layers=23
2828

Diff for: tools/ee.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ TAG_BASE=community-ansible-dev-tools-base:latest
2525
IMAGE_NAME=localhost/community-ansible-dev-tools:test
2626

2727
# BUILD_CMD="podman build --squash-all"
28-
BUILD_CMD="${ADT_CONTAINER_ENGINE} buildx build --progress=plain"
28+
BUILD_CMD="${ADT_CONTAINER_ENGINE} buildx build --progress=plain --sbom=true"
2929

3030
# Publish should run on CI only on main branch, with or without release tag
3131
if [ "--publish" == "${1:-}" ]; then

0 commit comments

Comments
 (0)