Skip to content

Commit

Permalink
update OWASP scanner config
Browse files Browse the repository at this point in the history
  • Loading branch information
mprins committed Jan 22, 2019
1 parent f457897 commit 9171821
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ timestamps {
]]);

node {
withEnv(["JAVA_HOME=${ tool 'JDK8' }", "PATH+MAVEN=${tool 'Maven 3.5.3'}/bin:${env.JAVA_HOME}/bin"]) {
withEnv(["JAVA_HOME=${ tool 'JDK8' }", "PATH+MAVEN=${tool 'Maven 3.6.0'}/bin:${env.JAVA_HOME}/bin"]) {

stage('Prepare') {
sh "ulimit -a"
Expand All @@ -35,8 +35,7 @@ timestamps {

stage('OWASP Dependency Check') {
echo "Uitvoeren OWASP dependency check"
sh "mvn org.owasp:dependency-check-maven:aggregate -Dformat=ALL -DsuppressionFile=./.mvn/owasp-suppression.xml"

sh "mvn org.owasp:dependency-check-maven:check"
dependencyCheckPublisher canComputeNew: false, defaultEncoding: '', healthy: '85', pattern: '**/dependency-check-report.xml', shouldDetectModules: true, unHealthy: ''
}
}
Expand Down
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>4.0.2</version>
<configuration>
<suppressionFile>${project.basedir}/.mvn/owasp-suppression.xml</suppressionFile>
<format>ALL</format>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Expand Down

0 comments on commit 9171821

Please sign in to comment.