Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gitleaks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Gitleaks
Commits
91587a38
Commit
91587a38
authored
1 year ago
by
Clement
Committed by
Pierre Smeyers
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(rules): always use default config file
parent
669be7db
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-gitleaks.yml
+1
-5
1 addition, 5 deletions
templates/gitlab-ci-gitleaks.yml
with
1 addition
and
5 deletions
templates/gitlab-ci-gitleaks.yml
+
1
−
5
View file @
91587a38
...
...
@@ -196,17 +196,13 @@ stages:
}
function install_gitleaks_rules() {
# If present, import gitleaks rules found inside the git repository (in place of the default + Orange rules)
if [[ -f ".gitleaks.toml" ]]
then
log_info "Using custom Gitleaks rules from project (\\e[33;1m.gitleaks.toml\\e[0m)"
cp .gitleaks.toml ./gitleaks/rules.toml
export gitleaks_rule_opts="--config ./gitleaks/rules.toml"
elif [[ "$GITLEAKS_RULES" ]]
then
log_info "Using Gitleaks rules from env (\\e[33;1m\$GITLEAKS_RULES\\e[0m)"
echo "$GITLEAKS_RULES" > ./gitleaks/rules.toml
export gitleaks_rule_opts="--config ./gitleaks/rules.toml"
echo "$GITLEAKS_RULES" > .gitleaks.toml
else
log_info "No Gitleaks rules found: use default"
fi
...
...
This diff is collapsed.
Click to expand it.
Benguria Elguezabal, Gorka
@gorka.benguria
mentioned in commit
958e926c
·
9 months ago
mentioned in commit
958e926c
mentioned in commit 958e926c9e85d50e160bed57c5afc03b1c3ab1e6
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment