Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pipeline {
stage('Unit Testing') {
agent {
docker {
image 'securityuniversal/jenkins:latest'
image 'securityuniversal/jenkins-python-agent:latest'
}
}
when {
Expand All @@ -75,7 +75,7 @@ pipeline {
stage('Secret Scanning') {
agent {
docker {
image 'securityuniversal/jenkins-secret-agent:latest'
image 'securityuniversal/jenkins-sectesting-agent:latest'
}
}
when {
Expand All @@ -99,7 +99,7 @@ pipeline {
stage('Software Composition Analysis') {
agent {
docker {
image 'securityuniversal/jenkins:latest'
image 'securityuniversal/jenkins-sectesting-agent:latest'
}
}
when {
Expand Down Expand Up @@ -127,7 +127,7 @@ pipeline {
stage('Static Application Security Testing') {
agent {
docker {
image 'securityuniversal/jenkins:latest'
image 'securityuniversal/jenkins-sectesting-agent:latest'
}
}
when {
Expand Down Expand Up @@ -155,7 +155,7 @@ pipeline {
stage('Infrastructure-as-Code Security Testing') {
agent {
docker {
image 'securityuniversal/jenkins-iac-agent:latest'
image 'securityuniversal/jenkins-sectesting-agent:latest'
args '--group-add 999'
}
}
Expand Down Expand Up @@ -210,7 +210,7 @@ pipeline {
stage('Docker Container Scanning') {
agent {
docker {
image 'securityuniversal/jenkins-iac-agent:latest'
image 'securityuniversal/jenkins-sectesting-agent:latest'
args '--group-add 999'
}
}
Expand Down Expand Up @@ -294,6 +294,12 @@ pipeline {

////////// Quality Gate //////////
stage("Quality Gate - Security") {
agent {
docker {
image 'securityuniversal/jenkins-sectesting-agent:latest'
args '--group-add 999'
}
}
when {
expression {
def config = jslReadYamlConfig('securityQualityGate')
Expand Down
4 changes: 2 additions & 2 deletions pipeline-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stages:
enabled: false
branches: []
secretScanning:
enabled: true
enabled: false
branches:
- release
sca:
Expand All @@ -29,7 +29,7 @@ stages:
codeLanguages:
- Python
iac:
enabled: true
enabled: false
branches:
- release
buildDocker:
Expand Down
2 changes: 1 addition & 1 deletion src/vr/api/vulns/vulnerabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def update_vulnerabilities_status(app_cmdb_id, scan_id, req_raw):
def add_vulns_background_process(req_raw):
now = datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S")
app_name = req_raw['appName']
git_url = req_raw['giturl']
git_url = req_raw['gitUrl']
git_branch = req_raw['branch']
findings = req_raw['findings']
scan_type = req_raw['scanType']
Expand Down