From db26ff1b989255f7c5fcbd2fc5bd5f44a79cf6c1 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Mon, 14 Sep 2026 21:26:17 -0700 Subject: [PATCH] Add Gitleaks secret scanning workflow --- .github/workflows/gitleaks.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 000000000..5e64b8a85 --- /dev/null +++ b/.github/workflows/gitleaks.yml @@ -0,0 +1,27 @@ +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@v3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Required for organization-owned repositories. + GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} + GITLEAKS_ENABLE_COMMENTS: "false"