Add Gitleaks secret scanning workflow

This commit is contained in:
Mike Cao committed 2026-09-14 21:26:17 -07:00
1 parent e0ac718e7a
commit db26ff1b98
1 file changed
+27
+27
View File
@@ -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"