Commit a8612724 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'master' into 'master'

Fix #15 - Create folder before the copy

Closes #15

See merge request to-be-continuous/gitleaks!44
parents 669be7db 91587a38
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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