Skip to content

Commit cf929bc

Browse files
saving report
1 parent 4c90258 commit cf929bc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/test-sbom.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
file: docker/service/Dockerfile
3939
push: false
4040
tags: nhsdev/nia-gp2gp-adaptor:test-build
41-
labels: ${{ steps.meta.outputs.labels }}
4241
load: true
4342

4443
- name: Syft
@@ -49,11 +48,15 @@ jobs:
4948
output-file: sbom.spdx.json
5049

5150
- name: GRYPE
51+
id: grype-scan
5252
uses: anchore/scan-action@v3
5353
with:
5454
image: nhsdev/nia-gp2gp-adaptor:test-build
55-
output-file: vulnerabilities.json
56-
fail-on-severity: high
55+
output-format: json
56+
severity-cutoff: medium
57+
58+
- name: save report
59+
run: echo "${{ steps.grype_scan.outputs.json }}" > vulnerabilities.json
5760

5861
- name: Upload arti
5962
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)