Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add GitLab CI config to replace Gemnasium reports
- Loading branch information
1 parent
e0a4dfd
commit 88f5f3b
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] |