diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8240e62..799b2c2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,6 +15,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: runs-on: ubuntu-latest