Permalink
Browse files

Add GitLab CI config to replace Gemnasium reports

  • Loading branch information...
bkimminich committed Jun 4, 2018
1 parent e0a4dfd commit 88f5f3bf1cbe9f30331e3e1cbf4483457514a583
Showing with 16 additions and 0 deletions.
  1. +16 −0 .gitlab-ci.yml
@@ -0,0 +1,16 @@
dependency_scanning:
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env DEP_SCAN_DISABLE_REMOTE_CHECKS="${DEP_SCAN_DISABLE_REMOTE_CHECKS:-false}"
--volume "$PWD:/code"
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/dependency-scanning:$SP_VERSION" /code
artifacts:
paths: [gl-dependency-scanning-report.json]

0 comments on commit 88f5f3b

Please sign in to comment.