From 3a1ab4881840ecceae7da72f76a2477603f08e5d Mon Sep 17 00:00:00 2001 From: Zachary Rice Date: Sun, 12 Jun 2022 13:25:03 -0500 Subject: [PATCH] Update README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 9cf4c4db..f62dae47 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,25 @@ cd gitleaks make build ``` +### Github Action +Check out the official [Gitleaks GitHub Action](https://github.com/gitleaks/gitleaks-action) +``` +name: gitleaks +on: [pull_request, push, workflow_dispatch] +jobs: + scan: + name: gitleaks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: gitleaks/gitleaks-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} # Only required for Organizations, not personal accounts. +``` + ### Pre-Commit 1. Install pre-commit from https://pre-commit.com/#install 2. Create a `.pre-commit-config.yaml` file at the root of your repository with the following content: