diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1d9a5ce..92b1cf0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,21 @@ on: workflow_dispatch: 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: strategy: matrix: