name: Gitleaks on: push: pull_request: workflow_dispatch: permissions: contents: read jobs: scan: name: Scan for secrets runs-on: blacksmith-4vcpu-ubuntu-2404 steps: - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Run Gitleaks uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3.0.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required for organization-owned repositories. GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} GITLEAKS_ENABLE_COMMENTS: "false"