Skip to content

Commit b18032e

Browse files
committed
Add: Add a job to build and push SBOM with trivy
1 parent 1f37183 commit b18032e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/push.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,13 @@ jobs:
9494
repository: "greenbone/automatix"
9595
workflow: "push.yml"
9696
inputs: '{"service": "${{ matrix.service }}", "image-url": "${{ matrix.image-url }}", "digest": "${{ matrix.digest }}", "version": "${{ matrix.version }}"}'
97+
98+
generate-and-push-sbom-trivy:
99+
name: Scan image and push SBOM
100+
if: ${{ needs.push-postgres.outputs.matrix }}
101+
needs: push-postgres
102+
uses: greenbone/workflows/.github/workflows/generate-and-push-sbom-with-trivy-3rd-gen.yml@main
103+
with:
104+
image-url: "${{ vars.GREENBONE_REGISTRY}}/opensight/opensight-postgres:${{ matrix.version }}"
105+
output-file-name: 'opensight-postgres.${{ matrix.version }}.sbom.json'
106+
artifact-url: "${{ vars.GREENBONE_REGISTRY }}/opensight-dev/opensight-postgres-sbom:${{ matrix.version }}"

0 commit comments

Comments
 (0)