Skip to content

Commit ee1342d

Browse files
committed
Add provenance and sbom.
1 parent 060b829 commit ee1342d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/development_image_release.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ jobs:
6767
id: get_version
6868
run: echo "SERVICE_VERSION=$(node -p "require('./service/package.json').version")" >> $GITHUB_OUTPUT
6969

70+
- name: Extract metadata for the image
71+
uses: docker/metadata-action@v5
72+
with:
73+
images: ${{ vars.DOCKER_REGISTRY }}
74+
7075
- name: Build Image and Push
7176
uses: docker/build-push-action@v5
7277
with:
@@ -76,4 +81,8 @@ jobs:
7681
# This should not be taged as latest
7782
tags: ${{vars.DOCKER_REGISTRY}}:${{steps.get_version.outputs.SERVICE_VERSION}}
7883
push: true
84+
# Note: This includes build args in the published provenance.
85+
# Do not use this if secrets are passed in as args.
86+
provenance: mode=max
87+
sbom: true
7988
file: ./service/Dockerfile

0 commit comments

Comments
 (0)