Skip to content

Commit 2a111f9

Browse files
Mark Pollackmark-tuvium
authored andcommitted
Add OWASP dependency-check Maven profile
Adds an 'owasp' profile with dependency-check-maven plugin (v12.1.0) for local vulnerability scanning. Run with: mvn verify -Powasp Fails build on CVSS >= 7.0.
1 parent 3f863d7 commit 2a111f9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,29 @@
292292
</plugins>
293293
</build>
294294
</profile>
295+
<profile>
296+
<id>owasp</id>
297+
<build>
298+
<plugins>
299+
<plugin>
300+
<groupId>org.owasp</groupId>
301+
<artifactId>dependency-check-maven</artifactId>
302+
<version>12.1.0</version>
303+
<configuration>
304+
<failBuildOnCVSS>7.0</failBuildOnCVSS>
305+
<ossindexAnalyzerEnabled>false</ossindexAnalyzerEnabled>
306+
</configuration>
307+
<executions>
308+
<execution>
309+
<goals>
310+
<goal>check</goal>
311+
</goals>
312+
</execution>
313+
</executions>
314+
</plugin>
315+
</plugins>
316+
</build>
317+
</profile>
295318
</profiles>
296319

297320
<distributionManagement>

0 commit comments

Comments
 (0)