Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
GitLeaks — CI component for Gitleaks SAST tool that scans git repositories for hardcoded secrets, API keys, and tokens with custom and remote configuration support. | Kitploit
Tools/GitLabGitLab/niclas-zone/ci/gitleaks
Static AnalysisCode AnalysisDevSecOpsSecret Detection
GitLabniclas-zone/ci/gitleaks

GitLeaks

CI component for Gitleaks SAST tool that scans git repositories for hardcoded secrets, API keys, and tokens with custom and remote configuration support.

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Website
121 month agoNot yet reviewed
Share

GitLeaks GitLab CI Component

A GitLab CI component for Gitleaks - a SAST tool for detecting and preventing hardcoded secrets like passwords, API keys, and tokens in git repos.

Features

  • Secret Detection: Scans repositories for hardcoded secrets and sensitive information
  • Comprehensive Rules: Extensive set of built-in rules for detecting various types of secrets
  • Custom Configuration: Support for local and remote configuration files
  • Multiple Output Formats: Support for JSON, SARIF, and other report formats
  • Flexible Arguments: Pass additional flags directly to Gitleaks
  • Remote Configuration: Download and use configuration files from remote URLs
  • Configurable Job Settings: Customise job name, stage, and container image

Usage

Basic Usage

root@kitploit:~
include:
  - component: $CI_SERVER_FQDN/niclas-zone/ci/gitleaks/main@latest

stages:
  - test

With Custom Configuration

root@kitploit:~
include:
  - component: $CI_SERVER_FQDN/niclas-zone/ci/gitleaks/main@latest
    inputs:
      GITLEAKS_CONFIG: ".gitleaks.toml"
      GITLEAKS_EXTRA_ARGS: "--verbose --report-format sarif"

stages:
  - test

With Remote Configuration

root@kitploit:~
include:
  - component: $CI_SERVER_FQDN/niclas-zone/ci/gitleaks/main@latest
    inputs:
      GITLEAKS_REMOTE_CONFIG: "https://gitlab.com/niclas-zone/ci/gitleaks/-/raw/main/configs/gitleaks.toml"

stages:
  - test

Inputs

InputDescriptionDefault
job_nameName of the CI job"secret scanning"
stagePipeline stage"test"
imageDocker image for Gitleaks"registry.gitlab.com/niclas-zone/ctr/gitleaks:8.28.0"
GITLEAKS_EXTRA_ARGSExtra arguments for Gitleaks"--verbose --redact --report-format json"
GITLEAKS_CONFIGPath to local Gitleaks config file""
GITLEAKS_REMOTE_CONFIGURL to download Gitleaks config file""

Configuration Files

Local Configuration

Place a .gitleaks.toml file in your repository root or specify the path using GITLEAKS_CONFIG.

Remote Configuration

Set GITLEAKS_REMOTE_CONFIG to download a configuration file from a URL. This is useful for sharing configurations across multiple projects.

Default Configuration

If no local or remote configuration is specified, the component will use Gitleaks' built-in default rules.

Artifacts

The component generates the following artifacts:

  • gitleaks-report.json: Scan results in JSON format (or other format based on --report-format argument)

Documentation

For more information about Gitleaks configuration and options, see:

  • Gitleaks Documentation
  • Configuration Guide
  • Command Line Options
Download Tool