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
edbb7455
Commit
edbb7455
authored
Jun 10, 2020
by
Zach Rice
Committed by
Mayra Cabrera
Jun 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding secret detection ci template
parent
6600d8db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
changelogs/unreleased/207990-secret-detection-ci-template.yml
...gelogs/unreleased/207990-secret-detection-ci-template.yml
+5
-0
lib/gitlab/ci/templates/Security/Secret-Detection.gitlab-ci.yml
...tlab/ci/templates/Security/Secret-Detection.gitlab-ci.yml
+24
-0
No files found.
changelogs/unreleased/207990-secret-detection-ci-template.yml
0 → 100644
View file @
edbb7455
---
title
:
Add secret detection template
merge_request
:
33869
author
:
type
:
added
lib/gitlab/ci/templates/Security/Secret-Detection.gitlab-ci.yml
0 → 100644
View file @
edbb7455
# Read more about this feature here: https://docs.gitlab.com/ee/user/application_security/secret_detection
#
# Configure the scanning tool through the environment variables.
# List of the variables: https://gitlab.com/gitlab-org/security-products/secret_detection#available-variables
# How to set: https://docs.gitlab.com/ee/ci/yaml/#variables
variables
:
SECURE_ANALYZERS_PREFIX
:
"
registry.gitlab.com/gitlab-org/security-products/analyzers"
SECRETS_ANALYZER_VERSION
:
"
3"
secret_detection
:
stage
:
test
image
:
"
$SECURE_ANALYZERS_PREFIX/secrets:$SECRETS_ANALYZER_VERSION"
services
:
[]
rules
:
-
if
:
$SECRET_DETECTION_DISABLED
when
:
never
-
if
:
$CI_COMMIT_BRANCH && $GITLAB_FEATURES =~ /\bsecret_detection\b/
when
:
on_success
artifacts
:
reports
:
secret_detection
:
gl-secret-detection-report.json
script
:
-
/analyzer 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