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
56ffc7f0
Commit
56ffc7f0
authored
Aug 14, 2021
by
Philippe Lafoucrière
Committed by
Matija Čupić
Aug 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test for tags
parent
4280e2f3
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 @
56ffc7f0
...
@@ -27,8 +27,8 @@ secret_detection:
...
@@ -27,8 +27,8 @@ secret_detection:
when
:
never
when
:
never
-
if
:
$CI_COMMIT_BRANCH
-
if
:
$CI_COMMIT_BRANCH
script
:
script
:
-
if [
[ $CI_COMMIT_TAG ]
]; then echo "Skipping Secret Detection for tags. No code changes have occurred."; 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
-
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 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
-
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
-
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