Skip to content

test(auth): 适配 SQL dry-run 控制器依赖 #39

test(auth): 适配 SQL dry-run 控制器依赖

test(auth): 适配 SQL dry-run 控制器依赖 #39

Workflow file for this run

name: secret-scan
# Scans the full git history + the PR diff for leaked secrets (API keys, tokens,
# private keys) with gitleaks. Fails the build if anything is found, so nothing
# sensitive can be merged or released. Allowlist for known test fixtures lives in
# .gitleaks.toml.
on:
push:
branches: [main]
tags: ['v*', 'nubase_cli@*']
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # full history so the scan covers every commit
- name: Install gitleaks
run: |
VERSION=8.30.1
curl -sSL "https://github.com/gitleaks/gitleaks/releases/download/v${VERSION}/gitleaks_${VERSION}_linux_x64.tar.gz" \
| sudo tar -xz -C /usr/local/bin gitleaks
gitleaks version
- name: Scan git history for secrets
run: gitleaks detect --source . --config .gitleaks.toml --redact -v