Skip to content

Commit 00ce720

Browse files
committed
chore: move test workflows to test.yml
Signed-off-by: Keith Zantow <[email protected]>
1 parent 9b3285b commit 00ce720

File tree

3 files changed

+66
-91
lines changed

3 files changed

+66
-91
lines changed

.github/workflows/demo.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/sarifdemo.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,69 @@ jobs:
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 }}

0 commit comments

Comments
 (0)