Skip to content

Commit

Permalink
Add snyk integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Azurelol authored and Larusso committed Apr 29, 2022
1 parent 48e9eeb commit f8b80b8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Jenkinsfile
Expand Up @@ -2,7 +2,8 @@
@Library('github.com/wooga/atlas-jenkins-pipeline@1.x') _

withCredentials([string(credentialsId: 'atlas_wdk_unity_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')]) {
buildGradlePlugin platforms: ['macos', 'windows', 'linux'],
coverallsToken: coveralls_token, sonarToken: sonar_token
}
16 changes: 12 additions & 4 deletions build.gradle
Expand Up @@ -16,7 +16,11 @@
*/

plugins {
id 'net.wooga.plugins' version '2.2.3'
id 'net.wooga.plugins' version '2.3.0'
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 @@ -40,8 +44,12 @@ github {
repositoryName = "wooga/atlas-wdk-unity"
}

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

dependencies {
implementation "gradle.plugin.net.wooga.gradle:atlas-dotnet-sonarqube:(0.2,0.3]"
implementation "gradle.plugin.net.wooga.gradle:atlas-unity:(2,3]"
implementation "commons-io:commons-io:2.8.0"
implementation "gradle.plugin.net.wooga.gradle:atlas-dotnet-sonarqube:[0.2,0.3["
implementation "gradle.plugin.net.wooga.gradle:atlas-unity:[2,3["
implementation "commons-io:commons-io:2.11.0"
}
6 changes: 6 additions & 0 deletions settings.gradle
Expand Up @@ -14,5 +14,11 @@
* limitations under the License.
*
*/
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
}
}

rootProject.name = 'atlas-wdk-unity'

0 comments on commit f8b80b8

Please sign in to comment.