From c07aceb48d6ffff12bc67fdb5a53c80c721e040e Mon Sep 17 00:00:00 2001 From: Niklas Burchhardt Date: Tue, 2 Jun 2026 10:34:05 +0200 Subject: [PATCH] add gitleaks as credential scanner to actions --- .github/workflows/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2110966..bf1c444 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,21 @@ on: - main jobs: + gitleaks: + name: Secret Scanner + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v6 + with: + fetch-depth: 0 # Gitleaks needs the full history to scan properly + + - name: Run Gitleaks + uses: gitleaks/gitleaks-action@v3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} + test: runs-on: ubuntu-latest