Skip to content

Commit 3a358e5

Browse files
Add creds for OSS index dependency check (#1033)
## Description <!-- Provide a brief summary of the changes made and the issue they aim to address.--> https://ossindex.sonatype.org/doc/auth-required ## Testing <!-- Describe how the changes have been tested--> ## Additional Notes to the Reviewer <!-- Share any additional context or insights that may help the reviewer understand the changes better. This could include challenges faced, limitations, or compromises made during the development process. Also, mention any areas of the code that you would like the reviewer to focus on specifically. -->
1 parent ca4d21b commit 3a358e5

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030
- name: Publish to the Maven Central Repository
3131
run: |
3232
# Deploy main artifacts (uber JAR, sources, javadoc)
33-
mvn -Prelease --batch-mode deploy -Dnvd.api.key=${{ secrets.NVD_API_KEY }}
33+
mvn -Prelease --batch-mode deploy \
34+
-Dnvd.api.key=${{ secrets.NVD_API_KEY }} \
35+
-Dossindex.username=${{ secrets.OSSINDEX_USERNAME }} \
36+
-Dossindex.password=${{ secrets.OSSINDEX_PASSWORD }}
3437
env:
3538
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3639
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}

pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@
390390
<plugin>
391391
<groupId>org.owasp</groupId>
392392
<artifactId>dependency-check-maven</artifactId>
393-
<version>12.1.1</version>
393+
<version>12.1.6</version>
394394
<configuration>
395395
<formats>
396396
<format>HTML</format>
@@ -404,6 +404,9 @@
404404
<nvdApiKey>${nvd.api.key}</nvdApiKey>
405405
<nvdMaxRetryCount>10</nvdMaxRetryCount>
406406
<nvdApiDelay>4000</nvdApiDelay>
407+
<ossindexAnalyzerEnabled>true</ossindexAnalyzerEnabled>
408+
<ossindexUsername>${ossindex.username}</ossindexUsername>
409+
<ossindexPassword>${ossindex.password}</ossindexPassword>
407410
</configuration>
408411
<executions>
409412
<execution>

0 commit comments

Comments
 (0)