[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

run gitleaks in a gitleaks action

License

Notifications You must be signed in to change notification settings

motain/gitleaks-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitleaks

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

Attention: this project is a fork of the original project zricethezav/gitleaks-action. For everything that is not discussed in this document see the official documentation here.

OF Customizations

  • The exitcode action's output (i.e. steps.<gitleaks_action_id>.outputs.exitcode) returns 0 or 1 according to the result of the test.
  • The Action's input called config-path, used to replace the Gitleaks config using the --config-path parameter, is now used for passing additional configurations by using the --additional-config instead.
  • On every Github push event the action creates a report file called gitleaks-output.json on the root of the project.

Adding custom .gitleaks.toml configuration

This action assumes by default the use of all Gitleaks rules and can be customized using the config-path argument. The rules provided will be merged with the existing default rules and not, as in the original action, been replaced.

name: gitleaks

on: [push,pull_request]

jobs:
  gitleaks:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: gitleaks-action
      uses: motain/gitleaks-action@master
      with:
        config-path: .of/security/gitleaks.toml
> The `config-path` is relative to your GitHub Worskpace

TODOs

  • Perhaps, instead of hardcoding these changes on a forked repository, we should parametrize the changes as action inputs and open a PR on the official project.

About

run gitleaks in a gitleaks action

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 78.8%
  • Dockerfile 21.2%