Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
402a7622
Commit
402a7622
authored
Apr 03, 2018
by
Olivier Gonzalez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Security Products examples documentation
parent
2b3661a1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
8 deletions
+11
-8
doc/ci/examples/code_climate.md
doc/ci/examples/code_climate.md
+3
-2
doc/ci/examples/container_scanning.md
doc/ci/examples/container_scanning.md
+2
-2
doc/ci/examples/dast.md
doc/ci/examples/dast.md
+2
-0
doc/ci/examples/dependency_scanning.md
doc/ci/examples/dependency_scanning.md
+2
-2
doc/ci/examples/sast.md
doc/ci/examples/sast.md
+2
-2
No files found.
doc/ci/examples/code_climate.md
View file @
402a7622
...
...
@@ -9,11 +9,12 @@ Once you set up the Runner, add a new job to `.gitlab-ci.yml`, called `codequali
```
yaml
codequality
:
image
:
docker:
latest
image
:
docker:
stable
variables
:
DOCKER_DRIVER
:
overlay2
allow_failure
:
true
services
:
-
docker:dind
-
docker:
stable-
dind
script
:
-
export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
-
docker run --env SOURCE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
...
...
doc/ci/examples/container_scanning.md
View file @
402a7622
...
...
@@ -11,7 +11,7 @@ called `sast:container`:
```
yaml
sast:container:
image
:
docker:
latest
image
:
docker:
stable
variables
:
DOCKER_DRIVER
:
overlay2
## Define two new variables based on GitLab's CI/CD predefined variables
...
...
@@ -20,7 +20,7 @@ sast:container:
CI_APPLICATION_TAG
:
$CI_COMMIT_SHA
allow_failure
:
true
services
:
-
docker:dind
-
docker:
stable-
dind
script
:
-
docker run -d --name db arminc/clair-db:latest
-
docker run -p 6060:6060 --link db:postgres -d --name clair arminc/clair-local-scan:v2.0.1
...
...
doc/ci/examples/dast.md
View file @
402a7622
...
...
@@ -17,6 +17,7 @@ dast:
image
:
registry.gitlab.com/gitlab-org/security-products/zaproxy
variables
:
website
:
"
https://example.com"
allow_failure
:
true
script
:
-
mkdir /zap/wrk/
-
/zap/zap-baseline.py -J gl-dast-report.json -t $website ||
true
...
...
@@ -38,6 +39,7 @@ dast:
variables
:
website
:
"
https://example.com"
login_url
:
"
https://example.com/sign-in"
allow_failure
:
true
script
:
-
mkdir /zap/wrk/
-
/zap/zap-baseline.py -J gl-dast-report.json -t $website \
...
...
doc/ci/examples/dependency_scanning.md
View file @
402a7622
...
...
@@ -12,12 +12,12 @@ You can then add a new job to `.gitlab-ci.yml`, called `dependency_scanning`:
```
yaml
dependency_scanning
:
image
:
docker:
latest
image
:
docker:
stable
variables
:
DOCKER_DRIVER
:
overlay2
allow_failure
:
true
services
:
-
docker:dind
-
docker:
stable-
dind
script
:
-
export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
-
docker run
...
...
doc/ci/examples/sast.md
View file @
402a7622
...
...
@@ -13,12 +13,12 @@ You can then add a new job to `.gitlab-ci.yml`, called `sast`:
```
yaml
sast
:
image
:
docker:
latest
image
:
docker:
stable
variables
:
DOCKER_DRIVER
:
overlay2
allow_failure
:
true
services
:
-
docker:dind
-
docker:
stable-
dind
script
:
-
export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
-
docker run
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment