File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,11 +54,13 @@ jobs:
5454 role-to-assume : ${{ secrets.SECRET_MANAGER_ROLE_ARN }}
5555 aws-region : ${{ env.AWS_DEFAULT_REGION }}
5656
57- - name : Get NVD API key for dependency scan
57+ - name : Get secrets for dependency scan
5858 uses : aws-actions/aws-secretsmanager-get-secrets@a9a7eb4e2f2871d30dc5b892576fde60a2ecc802 # v2.0.10
5959 id : nvd_api_key
6060 with :
61- secret-ids : ${{ secrets.NVD_API_KEY_SECRET_ARN }}
61+ secret-ids : |
62+ ${{ secrets.NVD_API_KEY_SECRET_ARN }}
63+ OSS_INDEX, ${{ secrets.OSS_INDEX_SECRET_ARN }}
6264 parse-json-secrets : true
6365
6466 # See http://jeremylong.github.io/DependencyCheck/dependency-check-cli/ for installation explanation
7274 curl -Ls "https://github.com/dependency-check/DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip.asc" --output dependency-check.zip.asc
7375 gpg --verify dependency-check.zip.asc
7476 unzip dependency-check.zip
75- ./dependency-check/bin/dependency-check.sh --enableExperimental --failOnCVSS 0 --nvdApiKey ${{ env.NVD_API_KEY_NVD_API_KEY }} -s "."
77+ ./dependency-check/bin/dependency-check.sh --enableExperimental --failOnCVSS 0 --nvdApiKey ${{ env.NVD_API_KEY_NVD_API_KEY }} --ossIndexUsername ${{ env.OSS_INDEX_USERNAME }} --ossIndexPassword ${{ env.OSS_INDEX_PASSWORD }} - s "."
7678
7779 - name : Print dependency scan results on failure
7880 if : ${{ steps.dep_scan.outcome != 'success' }}
You can’t perform that action at this time.
0 commit comments