Skip to content

Commit

Permalink
Merge pull request #922 from mkosiarc/fix-parent-sbom-buildah-remote
Browse files Browse the repository at this point in the history
Save base_images_from_dockerfile to /workspaces/source
  • Loading branch information
rcerven authored Apr 4, 2024
2 parents b806ca7 + 34b0163 commit 5d40a19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions task/buildah-remote/0.1/buildah-remote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ spec:
done
# Needed to generate base images SBOM
echo "$BASE_IMAGES" > /workspace/base_images_from_dockerfile
echo "$BASE_IMAGES" > $(workspaces.source.path)/base_images_from_dockerfile
buildah push "$IMAGE" oci:rhtap-final-image
REMOTESSHEOF
Expand Down Expand Up @@ -444,7 +444,7 @@ spec:
image: quay.io/redhat-appstudio/base-images-sbom-script@sha256:667669e3def018f9dbb8eaf8868887a40bc07842221e9a98f6787edcff021840
name: create-base-images-sbom
script: |
python3 /app/base_images_sbom_script.py --sbom=sbom-cyclonedx.json --base-images-from-dockerfile=/workspace/base_images_from_dockerfile --base-images-digests=$BASE_IMAGES_DIGESTS_PATH
python3 /app/base_images_sbom_script.py --sbom=sbom-cyclonedx.json --base-images-from-dockerfile=base_images_from_dockerfile --base-images-digests=$BASE_IMAGES_DIGESTS_PATH
securityContext:
runAsUser: 0
workingDir: $(workspaces.source.path)
Expand Down
4 changes: 2 additions & 2 deletions task/buildah/0.1/buildah.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ spec:
done
# Needed to generate base images SBOM
echo "$BASE_IMAGES" > /workspace/base_images_from_dockerfile
echo "$BASE_IMAGES" > $(workspaces.source.path)/base_images_from_dockerfile
securityContext:
capabilities:
Expand Down Expand Up @@ -359,7 +359,7 @@ spec:
- name: BASE_IMAGES_DIGESTS_PATH
value: $(results.BASE_IMAGES_DIGESTS.path)
script: |
python3 /app/base_images_sbom_script.py --sbom=sbom-cyclonedx.json --base-images-from-dockerfile=/workspace/base_images_from_dockerfile --base-images-digests=$BASE_IMAGES_DIGESTS_PATH
python3 /app/base_images_sbom_script.py --sbom=sbom-cyclonedx.json --base-images-from-dockerfile=base_images_from_dockerfile --base-images-digests=$BASE_IMAGES_DIGESTS_PATH
workingDir: $(workspaces.source.path)
securityContext:
runAsUser: 0
Expand Down

0 comments on commit 5d40a19

Please sign in to comment.