mirror of
https://github.com/corda/corda.git
synced 2024-12-20 05:28:21 +00:00
Merge pull request #7240 from corda/jansz/INFRA-1850/update-snyk-scanning-os-4.4
INFRA-1850 Added modules for snyk scanning
This commit is contained in:
commit
e7e6b2bd6b
8
.ci/dev/regression/Jenkinsfile
vendored
8
.ci/dev/regression/Jenkinsfile
vendored
@ -195,7 +195,13 @@ pipeline {
|
|||||||
expression { isReleaseTag || isReleaseCandidate || isReleaseBranch }
|
expression { isReleaseTag || isReleaseCandidate || isReleaseBranch }
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
snykSecurityScan("${env.SNYK_API_KEY}", "--all-sub-projects --prune-repeated-subdependencies --debug --target-reference='${env.BRANCH_NAME}' --project-tags=Branch='${env.BRANCH_NAME.replaceAll("[^0-9|a-z|A-Z]+","_")}'")
|
script {
|
||||||
|
// Invoke Snyk for each Gradle sub project we wish to scan
|
||||||
|
def modulesToScan = ['node', 'capsule', 'bridge', 'bridgecapsule']
|
||||||
|
modulesToScan.each { module ->
|
||||||
|
snykSecurityScan("${env.SNYK_API_KEY}", "--sub-project=$module --configuration-matching='^runtimeClasspath\$' --prune-repeated-subdependencies --debug --target-reference='${env.BRANCH_NAME}' --project-tags=Branch='${env.BRANCH_NAME.replaceAll("[^0-9|a-z|A-Z]+","_")}'")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user