Skip to content
Snippets Groups Projects

Resolve "Integrate dependency-check container with Sonarqube"

Compare and Show latest version
1 file
+ 11
6
Compare changes
  • Side-by-side
  • Inline
+ 11
6
@@ -3,8 +3,8 @@ stages:
- build
- test
- test:npm_install
- test:sonar-scanner
- test:dependency_checker
- test:sonar-scanner
- publish
- security
@@ -56,9 +56,8 @@ Test Dependency Checker sonar-scanner:
name: its-registry.unl.edu/unl-its/docker-ci/static-code-analysis
cache:
policy: pull
variables:
DEPENDENCY_CHECK_OUT_DIR: /tmp/dependency_check_results
SRC_DIR: t/dependency-check/simple-app/
paths:
- t/dependency-check/simple-app/dependency_check_results/
tags:
- docker
script:
@@ -72,14 +71,20 @@ Test Dependency Checker dependency_check:
cache:
policy: pull
paths:
- t/dependency-check/simple-app/
- t/dependency-check/simple-app/dependency_check_results/
variables:
DEPENDENCY_CHECK_OUT_DIR: /tmp/dependency_check_results
DEPENDENCY_CHECK_OUT_DIR: t/dependency-check/simple-app/dependency_check_results/
SRC_DIR: t/dependency-check/simple-app/
tags:
- docker
script:
- dependency-check --format ALL -s ${SRC_DIR} --out ${DEPENDENCY_CHECK_OUT_DIR} --project ${CI_PROJECT_NAMESPACE} -n
artifacts:
paths:
- t/dependency-check/simple-app/dependency_check_results/dependency-check-report.html
- t/dependency-check/simple-app/dependency_check_results/dependency-check-report.xml
expire_in: 1 day
.Test Dependency Checker:
stage: test
Loading