Update JenkinsFile
This commit is contained in:
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@@ -23,6 +23,10 @@ pipeline {
|
||||
REGISTRY_CREDS = "registry-creds"
|
||||
|
||||
IMAGE = "${REGISTRY}/${IMAGE_NAME}"
|
||||
|
||||
DD_URL = "https://DD.brammie15.dev"
|
||||
DD_API_KEY = credentials('dd-api-key')
|
||||
NVD_API_KEY = credentials("nvd-api-key")
|
||||
}
|
||||
|
||||
stages {
|
||||
@@ -32,6 +36,16 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('SAST - Semgrep') {
|
||||
steps {
|
||||
sh """
|
||||
docker run --rm -v "\$(pwd):/src" \
|
||||
returntocorp/semgrep \
|
||||
semgrep scan --config=auto /src
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build image') {
|
||||
steps {
|
||||
script {
|
||||
|
||||
Reference in New Issue
Block a user