Skip to content

Commit

Permalink
Add snyk monitoring
Browse files Browse the repository at this point in the history
Description
===========

This patch adds snyk monitoring to the build pipeline.
It will hook itself into the check and publish stages.

The patch also sets a dependency helper plugin net.wooga.cve-dependency-resolution
which applies overrides for dependencies with know fixes for security issues.

Changes
=======

* ![ADD] `snyk` monitoring
* ![ADD] `net.wooga.snyk-wdk-java` snyk convention plugin
* ![ADD] `net.wogoa.cve-dependency-resolution` plugin
  • Loading branch information
Larusso committed Apr 22, 2022
1 parent 54f86b3 commit 072cba7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ withCredentials([string(credentialsId: 'atlas_appcenter_integration_token', vari

string(credentialsId: 'atlas_appcenter_integration_application_owner', variable: 'appcenterOwner'),
string(credentialsId: 'atlas_appcenter_coveralls_token', variable: 'coveralls_token'),
string(credentialsId: 'atlas_plugins_sonar_token', variable: 'sonar_token')
string(credentialsId: 'atlas_plugins_sonar_token', variable: 'sonar_token'),
string(credentialsId: 'atlas_plugins_snyk_token', variable: 'SNYK_TOKEN')
]) {

def testEnvironment = [
Expand Down
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
*/

plugins {
id "net.wooga.plugins" version "2.2.3"
id "net.wooga.plugins" version "2.2.3"
id 'net.wooga.snyk' version '0.10.0'
id "net.wooga.snyk-gradle-plugin" version "0.2.0"
id "net.wooga.cve-dependency-resolution" version "0.4.0"
}

group 'net.wooga.gradle'
Expand All @@ -39,6 +42,10 @@ github {
repositoryName = "wooga/atlas-appcenter"
}

cveHandler {
configurations("compileClasspath", "runtimeClasspath", "testCompileClasspath", "testRuntimeClasspath", "integrationTestCompileClasspath", "integrationTestRuntimeClasspath")
}

dependencies {
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation 'org.apache.httpcomponents:httpmime:4.5.13'
Expand Down

0 comments on commit 072cba7

Please sign in to comment.