From 5f2aaf12216a43e418412e8bfc4a06d3d3059a7d Mon Sep 17 00:00:00 2001 From: Ryan Tate Date: Thu, 29 Jul 2021 21:41:14 +0000 Subject: [PATCH] setup gitleaks action --- .github/workflows/gitleaks.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/gitleaks.yml diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml new file mode 100644 index 00000000..12b6e600 --- /dev/null +++ b/.github/workflows/gitleaks.yml @@ -0,0 +1,23 @@ +name: GitLeaks Scan + +on: + pull_request: + branches: + - main + +jobs: + GitLeaks: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: GitLeaks Scan + run: | + if [ -f .github/gitleaks.toml ] + then + ARGS="--additional-config .github/gitleaks.toml" + else + ARGS="" + fi + docker run -v "$(pwd):/$(basename $(pwd))" zricethezav/gitleaks:latest --path="/$(basename $(pwd))" --verbose --no-git $(echo $ARGS) +