exports[`should follow and complete all steps: .NET: gitlab-ci.yml 1`] = `
"stages:
- sonarqube-check
- - vulnerability-report
+ - sonarqube-vulnerability-report
sonarqube-check:
stage: sonarqube-check
- main
- develop
-vulnerability-report:
- stage: vulnerability-report
+sonarqube-vulnerability-report:
+ stage: sonarqube-vulnerability-report
script:
- 'curl -u "\${SONAR_TOKEN}:" "\${SONAR_HOST_URL}/api/issues/gitlab_sast_export?projectKey=my-project&branch=\${CI_COMMIT_BRANCH}&pullRequest=\${CI_MERGE_REQUEST_IID}" -o gl-sast-sonar-report.json'
allow_failure: true
exports[`should follow and complete all steps: Gradle: gitlab-ci.yml 1`] = `
"stages:
- sonarqube-check
- - vulnerability-report
+ - sonarqube-vulnerability-report
sonarqube-check:
stage: sonarqube-check
- main
- develop
-vulnerability-report:
- stage: vulnerability-report
+sonarqube-vulnerability-report:
+ stage: sonarqube-vulnerability-report
script:
- 'curl -u "\${SONAR_TOKEN}:" "\${SONAR_HOST_URL}/api/issues/gitlab_sast_export?projectKey=my-project&branch=\${CI_COMMIT_BRANCH}&pullRequest=\${CI_MERGE_REQUEST_IID}" -o gl-sast-sonar-report.json'
allow_failure: true
exports[`should follow and complete all steps: Maven: gitlab-ci.yml 1`] = `
"stages:
- sonarqube-check
- - vulnerability-report
+ - sonarqube-vulnerability-report
sonarqube-check:
stage: sonarqube-check
- main
- develop
-vulnerability-report:
- stage: vulnerability-report
+sonarqube-vulnerability-report:
+ stage: sonarqube-vulnerability-report
script:
- 'curl -u "\${SONAR_TOKEN}:" "\${SONAR_HOST_URL}/api/issues/gitlab_sast_export?projectKey=my-project&branch=\${CI_COMMIT_BRANCH}&pullRequest=\${CI_MERGE_REQUEST_IID}" -o gl-sast-sonar-report.json'
allow_failure: true
exports[`should follow and complete all steps: Other: gitlab-ci.yml 1`] = `
"stages:
- sonarqube-check
- - vulnerability-report
+ - sonarqube-vulnerability-report
sonarqube-check:
stage: sonarqube-check
- main
- develop
-vulnerability-report:
- stage: vulnerability-report
+sonarqube-vulnerability-report:
+ stage: sonarqube-vulnerability-report
script:
- 'curl -u "\${SONAR_TOKEN}:" "\${SONAR_HOST_URL}/api/issues/gitlab_sast_export?projectKey=my-project&branch=\${CI_COMMIT_BRANCH}&pullRequest=\${CI_MERGE_REQUEST_IID}" -o gl-sast-sonar-report.json'
allow_failure: true
const command = `stages:
- sonarqube-check
- - vulnerability-report
+ - sonarqube-vulnerability-report
sonarqube-check:
stage: sonarqube-check
- main
- develop
-vulnerability-report:
- stage: vulnerability-report
+sonarqube-vulnerability-report:
+ stage: sonarqube-vulnerability-report
script:
- 'curl -u "\${SONAR_TOKEN}:" "\${SONAR_HOST_URL}/api/issues/gitlab_sast_export?projectKey=${projectKey}&branch=\${CI_COMMIT_BRANCH}&pullRequest=\${CI_MERGE_REQUEST_IID}" -o gl-sast-sonar-report.json'
allow_failure: true