File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 with :
3434 node-version : ' 18'
3535
36- - name : Build Node.js project for scanning
37- run : npm install
36+ - name : Install published package for scanning
37+ run : |
38+ mkdir -p scan-target && cd scan-target
39+ npm init -y
40+ npm install aws-xray-sdk
3841
3942 - name : Install Java for dependency scan
4043 uses : actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
6871 curl -Ls "https://github.com/dependency-check/DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip.asc" --output dependency-check.zip.asc
6972 gpg --verify dependency-check.zip.asc
7073 unzip dependency-check.zip
71- ./dependency-check/bin/dependency-check.sh --failOnCVSS 0 --nvdApiKey ${{ env.NVD_API_KEY_NVD_API_KEY }} --ossIndexUsername ${{ env.OSS_INDEX_USERNAME }} --ossIndexPassword ${{ env.OSS_INDEX_PASSWORD }} -s ". "
74+ ./dependency-check/bin/dependency-check.sh --failOnCVSS 0 --nvdApiKey ${{ env.NVD_API_KEY_NVD_API_KEY }} --ossIndexUsername ${{ env.OSS_INDEX_USERNAME }} --ossIndexPassword ${{ env.OSS_INDEX_PASSWORD }} -s "scan-target/ "
7275
7376 - name : Print dependency scan results on failure
7477 if : ${{ steps.dep_scan.outcome != 'success' }}
You can’t perform that action at this time.
0 commit comments