Skip to content

Commit

Permalink
Define NVD_API_KEY in vulnerability scan
Browse files Browse the repository at this point in the history
Use the NVD_API_KEY secret to access vulnerability definitions from the NVD database.

Signed-off-by: Mark S. Lewis <[email protected]>
  • Loading branch information
bestbeforetoday committed Dec 20, 2023
1 parent 0d4253f commit 6a50d19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/vulnerability-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
distribution: "temurin"
cache: maven
- name: Scan
env:
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
run: mvn -P owasp dependency-check:check
- name: "Archive dependency-check report"
if: success() || failure()
Expand Down
14 changes: 0 additions & 14 deletions dependency-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,13 @@
-->

<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
<suppress>
<notes><![CDATA[
CVE was reported against @grpc/grpc-js npm package, not Java
]]></notes>
<packageUrl regex="true">^pkg:maven/io\.opentelemetry\.instrumentation/opentelemetry\-grpc\-1\.6@.*$</packageUrl>
<cve>CVE-2020-7768</cve>
</suppress>
<suppress>
<notes><![CDATA[
Vulnerability in core Fabric Go implementation, not the Java SDK
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.hyperledger\.fabric\-sdk\-java/fabric\-sdk\-java@.*$</packageUrl>
<cve>CVE-2022-36023</cve>
</suppress>
<suppress>
<notes><![CDATA[
fabric-sdk-java only uses SnakeYaml's SafeConstructor for parsing YAML, which mitigates the vulnerability
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.yaml/snakeyaml@.*$</packageUrl>
<vulnerabilityName>CVE-2022-1471</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
Vulnerability in C++ gRPC implementation
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>9.0.2</version>
<version>9.0.7</version>
<configuration>
<skipProvidedScope>true</skipProvidedScope>
<skipTestScope>true</skipTestScope>
Expand Down

0 comments on commit 6a50d19

Please sign in to comment.