Skip to content
Snippets Groups Projects
Commit 8db88ca0 authored by bhill6@wisc.edu's avatar bhill6@wisc.edu
Browse files

reorganized gitlab-ci for scanning

parent 00866503
No related branches found
No related tags found
1 merge request!36Dependency updates to eliminate vulnerabilities discovered by dependency-check
Pipeline #137759 passed
include: include:
# Security scanning # Security scanning
- template: Security/SAST.gitlab-ci.yml - template: Security/SAST.gitlab-ci.yml
- template: Security/SAST-IaC.latest.gitlab-ci.yml
- template: Security/Secret-Detection.gitlab-ci.yml - template: Security/Secret-Detection.gitlab-ci.yml
- template: Security/Dependency-Scanning.gitlab-ci.yml - template: Security/Dependency-Scanning.gitlab-ci.yml
...@@ -27,25 +28,52 @@ default: ...@@ -27,25 +28,52 @@ default:
- docker - docker
stages: stages:
- test # GitLab security scanning jobs use the 'test' stage - build
- test
- deploy - deploy
test: build_jar:
stage: test stage: build
cache:
paths:
- .m2/repository
script: script:
- mvn clean $MAVEN_CLI_OPTS verify - mvn $MAVEN_CLI_OPTS clean verify
artifacts: artifacts:
paths: paths:
- .m2/
- target/
- uw-spring-security-config/target/dependency-check-report.html - uw-spring-security-config/target/dependency-check-report.html
- uw-spring-security-core/target/dependency-check-report.html - uw-spring-security-core/target/dependency-check-report.html
- uw-spring-security-sample-war/target/dependency-check-report.html - uw-spring-security-sample-war/target/dependency-check-report.html
- uw-spring-security-web/target/dependency-check-report.html - uw-spring-security-web/target/dependency-check-report.html
expire_in: 1 year expire_in: 1 week
secret_detection:
needs: []
semgrep-sast:
needs: []
gemnasium-maven-dependency_scanning:
variables:
DS_JAVA_VERSION: 8
needs:
- build_jar
spotbugs-sast:
tags:
needs:
- build_jar
variables:
SAST_JAVA_VERSION: 8
MAVEN_REPO_PATH: $CI_PROJECT_DIR/.m2/repository
COMPILE: "false"
deploy: deploy:
stage: deploy stage: deploy
only: only:
- main - trunk
script: script:
- env - env
- mvn $MAVEN_CLI_OPTS deploy -Pdeploy -X - mvn $MAVEN_CLI_OPTS deploy -Pdeploy -X
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment