Skip to content

Commit 0a9ce04

Browse files
authored
Merge pull request #747 from aws/daily-scan-ossindex-auth
add OSS Index authentication to dependency-check
2 parents 98c3fb3 + 6090275 commit 0a9ce04

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/daily-scan.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ jobs:
4848
role-to-assume: ${{ secrets.SECRET_MANAGER_ROLE_ARN }}
4949
aws-region: ${{ env.AWS_DEFAULT_REGION }}
5050

51-
- name: Get NVD API key for dependency scan
51+
- name: Get secrets for dependency scan
5252
uses: aws-actions/aws-secretsmanager-get-secrets@a9a7eb4e2f2871d30dc5b892576fde60a2ecc802 #v2.0.10
5353
id: nvd_api_key
5454
with:
55-
secret-ids: ${{ secrets.NVD_API_KEY_SECRET_ARN }}
55+
secret-ids: |
56+
${{ secrets.NVD_API_KEY_SECRET_ARN }}
57+
OSS_INDEX, ${{ secrets.OSS_INDEX_SECRET_ARN }}
5658
parse-json-secrets: true
5759

5860
# See http://jeremylong.github.io/DependencyCheck/dependency-check-cli/ for installation explanation
@@ -66,7 +68,7 @@ jobs:
6668
curl -Ls "https://github.com/dependency-check/DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip.asc" --output dependency-check.zip.asc
6769
gpg --verify dependency-check.zip.asc
6870
unzip dependency-check.zip
69-
./dependency-check/bin/dependency-check.sh --failOnCVSS 0 --nvdApiKey ${{ env.NVD_API_KEY_NVD_API_KEY }} -s "."
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 "."
7072
7173
- name: Print dependency scan results on failure
7274
if: ${{ steps.dep_scan.outcome != 'success' }}

0 commit comments

Comments
 (0)