Skip to content

fix(gitleaks): 统一用 [[allowlists]] 新语法(不能与 [allowlist] 混用) #94

fix(gitleaks): 统一用 [[allowlists]] 新语法(不能与 [allowlist] 混用)

fix(gitleaks): 统一用 [[allowlists]] 新语法(不能与 [allowlist] 混用) #94

name: Secret Pattern Audit
on:
pull_request:
push:
branches:
- main
- master
- "open-source/**"
permissions:
contents: read
security-events: write
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Gitleaks
env:
GITLEAKS_VERSION: "8.28.0"
run: |
curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" -o /tmp/gitleaks.tar.gz
tar -xzf /tmp/gitleaks.tar.gz -C /tmp gitleaks
/tmp/gitleaks detect --source . --config .gitleaks.toml --no-banner --redact --verbose
- name: Run open-source content audit
run: python3 scripts/open_source_audit.py --target public-repo