Doubao-powered voice input for Linux, Wayland and Omarchy
ci(security): report sanitized locations for history scan failures
quanru00b488cf71c2
diff --git a/.github/workflows/secrets.yml b/.github/workflows/secrets.ymlindex e2e7ed0..d9edbaf 100644--- a/.github/workflows/secrets.yml+++ b/.github/workflows/secrets.yml@@ -24,5 +24,19 @@ jobs:tar -xzf gitleaks.tar.gz gitleaks- name: Scan history and checkout (redacted; no reports uploaded)run: |- "$RUNNER_TEMP/gitleaks" git . --log-opts=--all --redact --no-banner+ scan_status=0+ "$RUNNER_TEMP/gitleaks" git . --log-opts=--all --redact --no-banner \+ --report-format json --report-path "$RUNNER_TEMP/gitleaks-history.json" || scan_status=$?+ if [ "$scan_status" -ne 0 ]; then+ python3 - "$RUNNER_TEMP/gitleaks-history.json" <<'PY'+ import json, pathlib, sys+ report = pathlib.Path(sys.argv[1])+ if report.exists():+ for finding in json.loads(report.read_text()):+ # Never print matched lines, secrets, authors, or commit messages.+ print(json.dumps({key: finding.get(key) for key in+ ("RuleID", "File", "StartLine", "Commit")}))+ PY+ exit "$scan_status"+ fi"$RUNNER_TEMP/gitleaks" dir . --redact --no-banner