@@ -29,25 +29,10 @@ jobs:
29
29
yarn install
30
30
npx eslint .
31
31
continue-on-error : true
32
- syft-source-sbom :
33
- name : SBOM for Source Code
34
- needs : code_quality
35
- permissions :
36
- contents : write
37
- runs-on : ubuntu-latest
38
- steps :
39
- - name : Checkout the code
40
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
41
- - name : Scan the source code and upload dependency results
42
- uses : anchore/sbom-action@f3355df2ccd621f5873fe3c7c653ebdc5ef1bcb2
43
- with :
44
- path : .
45
- dependency-snapshot : true
46
- format : spdx-json
47
32
build :
48
33
name : Build
49
34
runs-on : ubuntu-latest
50
- needs : syft-source-sbom
35
+ needs : code_quality
51
36
strategy :
52
37
matrix :
53
38
node-version : [16.x, 18.x, 20.x]
59
44
- name : Checkout Repository to Runner Context
60
45
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
61
46
- name : Use Node version ${{ matrix.node-version }}
62
- uses : actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
47
+ uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
63
48
with :
64
49
node-version : ${{ matrix.node-version }}
65
50
cache : " yarn"
82
67
- name : Checkout Repository to Runner Context
83
68
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
84
69
- name : Use Node version ${{ matrix.node-version }}
85
- uses : actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
70
+ uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
86
71
with :
87
72
node-version : ${{ matrix.node-version }}
88
73
cache : " yarn"
@@ -198,10 +183,3 @@ jobs:
198
183
run : |
199
184
docker build -t ghcr.io/stormsinbrewing/savvy-devsecops .
200
185
docker push ghcr.io/stormsinbrewing/savvy-devsecops
201
- - name : Image SBOM Scan with Syft
202
- uses : anchore/sbom-action@f3355df2ccd621f5873fe3c7c653ebdc5ef1bcb2
203
- with :
204
- image : " ghcr.io/stormsinbrewing/savvy-devsecops"
205
- dependency-snapshot : true
206
- format : spdx-json
207
- artifact-name : spdx.docker.json
0 commit comments