File tree Expand file tree Collapse file tree 1 file changed +34
-1
lines changed
Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ jobs:
126126 run : npm ci
127127
128128 - name : Run Trivy vulnerability scanner
129- uses : aquasecurity/trivy-action@master
129+ uses : aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # v0.33.1
130130 with :
131131 scan-type : ' fs'
132132 scan-ref : ' .'
@@ -136,6 +136,39 @@ jobs:
136136 ignore-unfixed : true
137137 scanners : ' vuln' # Only scan for vulnerabilities, not secrets
138138
139+ fossa-scan :
140+ name : License - Fossa Scan
141+ runs-on : ubuntu-latest
142+ steps :
143+ - name : Checkout
144+ uses : actions/checkout@v4
145+
146+ - name : Setup Node.js
147+ uses : actions/setup-node@v4
148+ with :
149+ node-version : ${{ inputs.node-version }}
150+ cache : ' npm'
151+
152+ - name : Cache dependencies
153+ uses : actions/cache@v3
154+ id : node-modules-cache
155+ with :
156+ path : ' **/node_modules'
157+ key : ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
158+ restore-keys : |
159+ ${{ runner.os }}-modules-
160+
161+ - name : Install dependencies
162+ if : steps.node-modules-cache.outputs.cache-hit != 'true'
163+ run : npm ci
164+
165+ - name : Run Fossa Analysis
166+ uses : fossas/fossa-action@3ebcea1862c6ffbd5cf1b4d0bd6b3fe7bd6f2cac # v1.7.0
167+ with :
168+ api-key : ${{ secrets.FOSSA_API_KEY }}
169+ branch : ${{ github.head_ref || github.ref_name }}
170+ project : BitGo/BitGoJS
171+
139172 test :
140173 name : Test
141174 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments