Skip to content

bpo/gitleaks-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Updates coming soon

gitleaks

Gitleaks Action provides a simple way to run gitleaks in your CI/CD pipeline.

This action should be used after a checkout. Be sure actions/checkout runs with the appropriate fetch-depth that you need:

  • fetch-depth: 0 clones the entire history
  • fetch-depth: 1, the default, fetches only the most recent commit.

Sample Workflow

name: gitleaks

on: [push,pull_request]

jobs:
  gitleaks:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
      with:
        fetch-depth: '0'
    - name: gitleaks-action
      uses: zricethezav/gitleaks-action@master

Using your own .gitleaks.toml configuration

name: gitleaks

on: [push,pull_request]

jobs:
  gitleaks:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
      with:
        fetch-depth: '0'
    - name: gitleaks-action
      uses: zricethezav/gitleaks-action@master
      with:
        config-path: security/.gitleaks.toml
> The `config-path` is relative to your GitHub Worskpace

About

run gitleaks in a gitleaks action

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 74.4%
  • Dockerfile 25.6%