Skip to content

Commit 8d369f0

Browse files
committed
add dependency-check-plügün
1 parent a14a3d7 commit 8d369f0

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
mvn versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
2121
- name: Build and Test
2222
id: buildAndTest
23-
run: mvn -B clean install
23+
run: mvn -B clean install -Pdependency-check
2424
- uses: actions/upload-artifact@v2
2525
with:
2626
name: artifacts

pom.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646

4747
<!-- test dependencies -->
4848
<junit.version>5.8.2</junit.version>
49+
50+
<!-- build plugin dependencies -->
51+
<dependency-check.version>7.0.0</dependency-check.version>
52+
<nexus-staging.version>1.6.8</nexus-staging.version>
4953
</properties>
5054

5155
<dependencies>
@@ -191,6 +195,33 @@
191195

192196

193197
<profiles>
198+
<profile>
199+
<id>dependency-check</id>
200+
<build>
201+
<plugins>
202+
<plugin>
203+
<groupId>org.owasp</groupId>
204+
<artifactId>dependency-check-maven</artifactId>
205+
<version>${dependency-check.version}</version>
206+
<configuration>
207+
<cveValidForHours>24</cveValidForHours>
208+
<failBuildOnCVSS>0</failBuildOnCVSS>
209+
<skipTestScope>true</skipTestScope>
210+
<detail>true</detail>
211+
<suppressionFile>suppression.xml</suppressionFile>
212+
</configuration>
213+
<executions>
214+
<execution>
215+
<goals>
216+
<goal>check</goal>
217+
</goals>
218+
</execution>
219+
</executions>
220+
</plugin>
221+
</plugins>
222+
</build>
223+
</profile>
224+
194225
<profile>
195226
<id>sign</id>
196227
<build>

suppression.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
3+
<suppress>
4+
<notes><![CDATA[
5+
Incorrectly matched CPE, see https://github.com/jeremylong/DependencyCheck/issues/4177git
6+
]]></notes>
7+
<gav regex="true">^org\.cryptomator:.*$</gav>
8+
<cpe>cpe:/a:cryptomator:cryptomator</cpe>
9+
<cve>CVE-2022-25366</cve>
10+
</suppress>
11+
<suppress>
12+
<notes><![CDATA[
13+
False postive, because secret-service only accesses the external gnome-keyring service
14+
]]></notes>
15+
<gav regex="true">^de\.swiesend\:secret\-service:.*$</gav>
16+
<cve>CVE-2018-19358</cve>
17+
<cve>CVE-2018-20781</cve>
18+
</suppress>
19+
</suppressions>

0 commit comments

Comments
 (0)