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
21607dbf
Commit
21607dbf
authored
Aug 14, 2021
by
Matija Čupić
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-sd-tags-test' into 'master'
Fix test for tags See merge request gitlab-org/gitlab!67870
parents
d5ae78b0
56ffc7f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/ci/templates/Jobs/Secret-Detection.gitlab-ci.yml
lib/gitlab/ci/templates/Jobs/Secret-Detection.gitlab-ci.yml
+2
-2
No files found.
lib/gitlab/ci/templates/Jobs/Secret-Detection.gitlab-ci.yml
View file @
21607dbf
...
...
@@ -27,8 +27,8 @@ secret_detection:
when
:
never
-
if
:
$CI_COMMIT_BRANCH
script
:
-
if [
[ $CI_COMMIT_TAG ]
]; then echo "Skipping Secret Detection for tags. No code changes have occurred."; exit 0; fi
-
if [
[ $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH ]
]; then echo "Running Secret Detection on default branch."; /analyzer run; exit 0; fi
-
if [
-n "$CI_COMMIT_TAG"
]; then echo "Skipping Secret Detection for tags. No code changes have occurred."; exit 0; fi
-
if [
"$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH"
]; then echo "Running Secret Detection on default branch."; /analyzer run; exit 0; fi
-
git fetch origin $CI_DEFAULT_BRANCH $CI_COMMIT_REF_NAME
-
git log --left-right --cherry-pick --pretty=format:"%H" refs/remotes/origin/$CI_DEFAULT_BRANCH...refs/remotes/origin/$CI_COMMIT_REF_NAME > "$CI_COMMIT_SHA"_commit_list.txt
-
export SECRET_DETECTION_COMMITS_FILE="$CI_COMMIT_SHA"_commit_list.txt
...
...
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