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
905ade5d
Commit
905ade5d
authored
Aug 26, 2020
by
Zach Rice
Committed by
Mayra Cabrera
Aug 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new SAST variable for SAST images
parent
1784b813
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
18 deletions
+59
-18
changelogs/unreleased/sast-image-variable.yml
changelogs/unreleased/sast-image-variable.yml
+5
-0
lib/gitlab/ci/templates/Security/Dependency-Scanning.gitlab-ci.yml
...b/ci/templates/Security/Dependency-Scanning.gitlab-ci.yml
+15
-5
lib/gitlab/ci/templates/Security/SAST.gitlab-ci.yml
lib/gitlab/ci/templates/Security/SAST.gitlab-ci.yml
+39
-13
No files found.
changelogs/unreleased/sast-image-variable.yml
0 → 100644
View file @
905ade5d
---
title
:
Add dedicated SAST and DS CI image variables
merge_request
:
39875
author
:
type
:
added
lib/gitlab/ci/templates/Security/Dependency-Scanning.gitlab-ci.yml
View file @
905ade5d
...
...
@@ -96,7 +96,9 @@ dependency_scanning:
gemnasium-dependency_scanning
:
extends
:
.ds-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/gemnasium:$DS_MAJOR_VERSION"
name
:
"
$DS_ANALYZER_IMAGE"
variables
:
DS_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/gemnasium:$DS_MAJOR_VERSION"
rules
:
-
if
:
$DEPENDENCY_SCANNING_DISABLED || $DS_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -116,7 +118,9 @@ gemnasium-dependency_scanning:
gemnasium-maven-dependency_scanning
:
extends
:
.ds-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/gemnasium-maven:$DS_MAJOR_VERSION"
name
:
"
$DS_ANALYZER_IMAGE"
variables
:
DS_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/gemnasium-maven:$DS_MAJOR_VERSION"
rules
:
-
if
:
$DEPENDENCY_SCANNING_DISABLED || $DS_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -132,7 +136,9 @@ gemnasium-maven-dependency_scanning:
gemnasium-python-dependency_scanning
:
extends
:
.ds-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/gemnasium-python:$DS_MAJOR_VERSION"
name
:
"
$DS_ANALYZER_IMAGE"
variables
:
DS_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/gemnasium-python:$DS_MAJOR_VERSION"
rules
:
-
if
:
$DEPENDENCY_SCANNING_DISABLED || $DS_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -155,7 +161,9 @@ gemnasium-python-dependency_scanning:
bundler-audit-dependency_scanning
:
extends
:
.ds-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/bundler-audit:$DS_MAJOR_VERSION"
name
:
"
$DS_ANALYZER_IMAGE"
variables
:
DS_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/bundler-audit:$DS_MAJOR_VERSION"
rules
:
-
if
:
$DEPENDENCY_SCANNING_DISABLED || $DS_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -168,7 +176,9 @@ bundler-audit-dependency_scanning:
retire-js-dependency_scanning
:
extends
:
.ds-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/retire.js:$DS_MAJOR_VERSION"
name
:
"
$DS_ANALYZER_IMAGE"
variables
:
DS_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/retire.js:$DS_MAJOR_VERSION"
rules
:
-
if
:
$DEPENDENCY_SCANNING_DISABLED || $DS_DISABLE_DIND == 'false'
when
:
never
...
...
lib/gitlab/ci/templates/Security/SAST.gitlab-ci.yml
View file @
905ade5d
...
...
@@ -59,7 +59,9 @@ sast:
bandit-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/bandit:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/bandit:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -71,7 +73,9 @@ bandit-sast:
brakeman-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/brakeman:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/brakeman:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -83,7 +87,9 @@ brakeman-sast:
eslint-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/eslint:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
$SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/eslint:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -99,7 +105,9 @@ eslint-sast:
flawfinder-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/flawfinder:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/flawfinder:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -112,7 +120,9 @@ flawfinder-sast:
kubesec-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/kubesec:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
$SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/kubesec:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -123,7 +133,9 @@ kubesec-sast:
gosec-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/gosec:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
$SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/gosec:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -135,7 +147,9 @@ gosec-sast:
nodejs-scan-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/nodejs-scan:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
$SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/nodejs-scan:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -147,7 +161,9 @@ nodejs-scan-sast:
phpcs-security-audit-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/phpcs-security-audit:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
$SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/phpcs-security-audit:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -159,7 +175,9 @@ phpcs-security-audit-sast:
pmd-apex-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/pmd-apex:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
$SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/pmd-apex:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -171,7 +189,9 @@ pmd-apex-sast:
secrets-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/secrets:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
$SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/secrets:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -181,7 +201,9 @@ secrets-sast:
security-code-scan-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/security-code-scan:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
$SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/security-code-scan:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -194,7 +216,9 @@ security-code-scan-sast:
sobelow-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/sobelow:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
$SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/sobelow:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
@@ -206,7 +230,9 @@ sobelow-sast:
spotbugs-sast
:
extends
:
.sast-analyzer
image
:
name
:
"
$SECURE_ANALYZERS_PREFIX/spotbugs:$SAST_ANALYZER_IMAGE_TAG"
name
:
"
$SAST_ANALYZER_IMAGE"
variables
:
SAST_ANALYZER_IMAGE
:
"
$SECURE_ANALYZERS_PREFIX/spotbugs:$SAST_ANALYZER_IMAGE_TAG"
rules
:
-
if
:
$SAST_DISABLED || $SAST_DISABLE_DIND == 'false'
when
:
never
...
...
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