File tree Expand file tree Collapse file tree 3 files changed +66
-91
lines changed
Expand file tree Collapse file tree 3 files changed +66
-91
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6969
7070 - name : " Check Grype version after scan-action"
7171 run : grype version | egrep "^Version:.*0.54.0$"
72+
73+ test-image :
74+ runs-on : ubuntu-latest
75+ steps :
76+ - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
77+ - uses : ./
78+ with :
79+ image : " alpine:latest"
80+ fail-build : false
81+
82+ test-directory :
83+ runs-on : ubuntu-latest
84+ steps :
85+ - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
86+ - uses : ./
87+ with :
88+ path : " tests/fixtures/npm-project"
89+ severity-cutoff : " negligible"
90+ fail-build : false
91+
92+ test-sbom :
93+ runs-on : ubuntu-latest
94+ steps :
95+ - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
96+ - uses : ./
97+ with :
98+ sbom : tests/fixtures/test_sbom.spdx.json
99+ fail-build : false
100+
101+ test-windows :
102+ runs-on : windows-latest
103+ steps :
104+ - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
105+ - uses : ./
106+ with :
107+ output-format : table
108+ image : " alpine:latest"
109+ fail-build : false
110+
111+ test-sarif-image :
112+ runs-on : ubuntu-latest
113+ steps :
114+ - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
115+ - name : Run the local Scan Action with SARIF generation enabled
116+ id : scan
117+ uses : ./
118+ with :
119+ image : " debian:8"
120+ fail-build : false
121+
122+ - name : Inspect Generated SARIF
123+ run : cat ${{ steps.scan.outputs.sarif }}
124+
125+ test-sarif-directory :
126+ runs-on : ubuntu-latest
127+ steps :
128+ - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
129+ - name : Run the local Scan Action with SARIF generation enabled
130+ id : scan
131+ uses : ./
132+ with :
133+ path : " tests/fixtures/npm-project"
134+ fail-build : false
135+
136+ - name : Inspect Generated SARIF
137+ run : cat ${{ steps.scan.outputs.sarif }}
You can’t perform that action at this time.
0 commit comments