Added OWASP check
This commit is contained in:
parent
479fbfa8f9
commit
e5a91cc656
@ -3,6 +3,7 @@ image: maven:3.8.4-openjdk-17
|
|||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- sonar
|
- sonar
|
||||||
|
. owasp
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
|
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
|
||||||
@ -12,6 +13,13 @@ cache:
|
|||||||
paths:
|
paths:
|
||||||
- .m2/repository
|
- .m2/repository
|
||||||
|
|
||||||
|
owasp:
|
||||||
|
stage: owasp
|
||||||
|
script:
|
||||||
|
- mvn $MAVEN_CLI_OPTS -Denforcer.skip clean dependency-check:check
|
||||||
|
only:
|
||||||
|
- schedules
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script: mvn $MAVEN_CLI_OPTS clean verify
|
script: mvn $MAVEN_CLI_OPTS clean verify
|
||||||
|
27
pom.xml
27
pom.xml
@ -109,6 +109,33 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.owasp</groupId>
|
||||||
|
<artifactId>dependency-check-maven</artifactId>
|
||||||
|
<version>7.1.1</version>
|
||||||
|
<configuration>
|
||||||
|
<cveValidForHours>12</cveValidForHours>
|
||||||
|
<failBuildOnCVSS>1</failBuildOnCVSS>
|
||||||
|
<!--
|
||||||
|
<suppressionFiles>
|
||||||
|
<suppressionFile>${maven.multiModuleProjectDirectory}/owasp-suppression.xml</suppressionFile>
|
||||||
|
</suppressionFiles>
|
||||||
|
-->
|
||||||
|
<assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled>
|
||||||
|
<composerAnalyzerEnabled>false</composerAnalyzerEnabled>
|
||||||
|
<nodeAuditAnalyzerEnabled>false</nodeAuditAnalyzerEnabled>
|
||||||
|
<nuspecAnalyzerEnabled>false</nuspecAnalyzerEnabled>
|
||||||
|
<cocoapodsAnalyzerEnabled>false</cocoapodsAnalyzerEnabled>
|
||||||
|
<golangDepEnabled>false</golangDepEnabled>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>check</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user