Skip to content

Commit 03f766b

Browse files
changing v6
1 parent b23b77f commit 03f766b

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/test-sbom.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: Release adaptor container image
22

33
on:
4-
push:
5-
branches:
6-
- check-sbom
4+
workflow_call:
5+
inputs:
6+
dockerhub_name:
7+
required: true
8+
type: string
9+
folder:
10+
required: true
11+
type: string
712

813
jobs:
914
reusable_workflow_job:
@@ -36,21 +41,21 @@ jobs:
3641
with:
3742
context: .
3843
file: docker/${{ inputs.folder }}/Dockerfile
39-
push: true
44+
# push: true
4045
tags: ${{ steps.meta.outputs.tags }}
4146
labels: ${{ steps.meta.outputs.labels }}
4247
platforms: linux/arm64/v8,linux/amd64
4348
load: true
4449

45-
- name: syft
50+
- name: Generate SBOM with Syft
4651
uses: anchore/sbom-action@v0
4752
with:
4853
image: ${{ fromJSON(steps.meta.outputs.tags)[0] }}
4954
format: spdx-json
5055
output-file: sbom.spdx.json
5156

52-
- name: grype
53-
uses: anchore/scan-action@v6
57+
- name: Scan for vulnerabilities with Grype
58+
uses: anchore/scan-action@v3
5459
with:
5560
image: ${{ fromJSON(steps.meta.outputs.tags)[0] }}
5661
output-file: vulnerabilities.json

0 commit comments

Comments
 (0)