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
feed78d6
Commit
feed78d6
authored
Apr 06, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
f6097c7f
302dbfff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
62 deletions
+51
-62
lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
+7
-1
lib/gitlab/ci/templates/Jobs/DAST.gitlab-ci.yml
lib/gitlab/ci/templates/Jobs/DAST.gitlab-ci.yml
+0
-54
lib/gitlab/ci/templates/Security/DAST.gitlab-ci.yml
lib/gitlab/ci/templates/Security/DAST.gitlab-ci.yml
+44
-7
No files found.
lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
View file @
feed78d6
...
...
@@ -78,8 +78,14 @@ include:
-
template
:
Jobs/Code-Quality.gitlab-ci.yml
-
template
:
Jobs/Deploy.gitlab-ci.yml
-
template
:
Jobs/Browser-Performance-Testing.gitlab-ci.yml
-
template
:
Jobs
/DAST.gitlab-ci.yml
-
template
:
Security
/DAST.gitlab-ci.yml
-
template
:
Security/Container-Scanning.gitlab-ci.yml
-
template
:
Security/Dependency-Scanning.gitlab-ci.yml
-
template
:
Security/License-Management.gitlab-ci.yml
-
template
:
Security/SAST.gitlab-ci.yml
# Override DAST job to exclude master branch
dast
:
except
:
refs
:
-
master
\ No newline at end of file
lib/gitlab/ci/templates/Jobs/DAST.gitlab-ci.yml
deleted
100644 → 0
View file @
f6097c7f
dast
:
stage
:
dast
image
:
docker:stable
variables
:
DOCKER_DRIVER
:
overlay2
allow_failure
:
true
services
:
-
docker:stable-dind
script
:
-
export DAST_WEBSITE=${DAST_WEBSITE:-$(cat environment_url.txt)}
-
export DAST_VERSION=${SP_VERSION:-$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')}
-
|
if ! docker info &>/dev/null; then
if [ -z "$DOCKER_HOST" -a "$KUBERNETES_PORT" ]; then
export DOCKER_HOST='tcp://localhost:2375'
fi
fi
-
|
function dast_run() {
docker run \
--env DAST_TARGET_AVAILABILITY_TIMEOUT \
--volume "$PWD:/output" \
--volume /var/run/docker.sock:/var/run/docker.sock \
-w /output \
"registry.gitlab.com/gitlab-org/security-products/dast:$DAST_VERSION" \
/analyze -t $DAST_WEBSITE \
"$@"
}
-
|
if [ -n "$DAST_AUTH_URL" ]
then
dast_run \
--auth-url $DAST_AUTH_URL \
--auth-username $DAST_USERNAME \
--auth-password $DAST_PASSWORD \
--auth-username-field $DAST_USERNAME_FIELD \
--auth-password-field $DAST_PASSWORD_FIELD
else
dast_run
fi
artifacts
:
reports
:
dast
:
gl-dast-report.json
only
:
refs
:
-
branches
-
tags
variables
:
-
$GITLAB_FEATURES =~ /\bdast\b/
except
:
refs
:
-
master
variables
:
-
$DAST_DISABLED
lib/gitlab/ci/templates/Security/DAST.gitlab-ci.yml
View file @
feed78d6
...
...
@@ -4,12 +4,6 @@
# List of the variables: https://gitlab.com/gitlab-org/security-products/dast#settings
# How to set: https://docs.gitlab.com/ee/ci/yaml/#variables
include
:
-
template
:
Jobs/DAST.gitlab-ci.yml
variables
:
DAST_WEBSITE
:
http://example.com
# Please edit to be your website to scan for vulnerabilities
stages
:
-
build
-
test
...
...
@@ -17,10 +11,53 @@ stages:
-
dast
dast
:
stage
:
dast
image
:
docker:stable
variables
:
DOCKER_DRIVER
:
overlay2
allow_failure
:
true
services
:
-
docker:stable-dind
script
:
-
export DAST_WEBSITE=${DAST_WEBSITE:-$(cat environment_url.txt)}
-
export DAST_VERSION=${SP_VERSION:-$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')}
-
|
if ! docker info &>/dev/null; then
if [ -z "$DOCKER_HOST" -a "$KUBERNETES_PORT" ]; then
export DOCKER_HOST='tcp://localhost:2375'
fi
fi
-
|
function dast_run() {
docker run \
--env DAST_TARGET_AVAILABILITY_TIMEOUT \
--volume "$PWD:/output" \
--volume /var/run/docker.sock:/var/run/docker.sock \
-w /output \
"registry.gitlab.com/gitlab-org/security-products/dast:$DAST_VERSION" \
/analyze -t $DAST_WEBSITE \
"$@"
}
-
|
if [ -n "$DAST_AUTH_URL" ]
then
dast_run \
--auth-url $DAST_AUTH_URL \
--auth-username $DAST_USERNAME \
--auth-password $DAST_PASSWORD \
--auth-username-field $DAST_USERNAME_FIELD \
--auth-password-field $DAST_PASSWORD_FIELD
else
dast_run
fi
artifacts
:
reports
:
dast
:
gl-dast-report.json
only
:
refs
:
-
branches
variables
:
-
$GITLAB_FEATURES =~ /\bdast\b/
except
:
refs
:
[]
# Override default from template
variables
:
-
$DAST_DISABLED
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