Skip to content
Snippets Groups Projects

Resolve "Integrate dependency-check container with Sonarqube"

Compare and Show latest version
1 file
+ 15
12
Compare changes
  • Side-by-side
  • Inline
+ 15
12
@@ -7,13 +7,6 @@ stages:
- publish
- security
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- t/dependency-check/simple-app/node_modules/
- t/dependency-check/simple-app/dependency_check_results/
policy: pull-push
.Check Makefile:
stage: verify
tags:
@@ -44,24 +37,34 @@ cache:
- docker run --rm its-registry.unl.edu/unl-its/docker-ci/static-code-analysis sonar-scanner -v
- docker run --rm -v "${PWD}:/work" -w /work its-registry.unl.edu/unl-its/docker-ci/detect-secrets -s
.Test Dependency Checker npm install:
Test Dependency Checker npm install:
stage: test:npm_install
tags:
- docker
image: node:alpine
cache:
paths:
- t/dependency-check/simple-app/node_modules/
script:
- cd t/dependency-check/simple-app/
- npm install
Test Dependency Checker dependency_check:
stage: test:dependency_checker
image:
name: its-registry.unl.edu/unl-its/docker-ci/dependency-check
cache:
policy: pull
variables:
DEPENDENCY_CHECK_OUT_DIR: /tmp/dependency_check_results
SRC_DIR: t/dependency-check/simple-app/
before_script:
- cd t/dependency-check/simple-app
- docker run --rm -v "${PWD}:/work" -w /work node:alpine npm install
- cd t/dependency-check/simple-app/
- ls -alr
tags:
- linux,dockerd
- docker
script:
- ls -alr
- dependency-check -v
.Test Dependency Checker:
stage: test
Loading