Files
TehRiehlDeal a314908c7b
CI / test (push) Successful in 25s
CI / lint (push) Failing after 22s
CI / secrets-scan (push) Failing after 13s
CI / vuln-scan (push) Failing after 9s
CI / sast (push) Successful in 20s
Wire security scans into the CI pipeline
Replace the test-only workflow with a parallel five-job pipeline:
tests, lint+format, gitleaks, Trivy (fs scan + CycloneDX SBOM), and
Semgrep SAST. Security scans are report-only initially so the team
can baseline findings before flipping the gates to blocking. Adds
.gitleaks.toml allowlists for the known dev/test placeholders so the
secret scan starts at zero noise. Future build-image / image-scan /
push-to-harbor stages are sketched in comments at the bottom of
ci.yml.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 15:58:56 -07:00

24 lines
590 B
TOML

# Gitleaks configuration
# Extends the built-in default ruleset and adds allowlists for known
# non-secret values that would otherwise trip the scan.
[extend]
useDefault = true
[allowlist]
description = "Known dev/test placeholders and generated artifacts"
regexes = [
# Frontend test env value, set in .gitea/workflows/ci.yml
'''placeholder-anon-key-for-tests-only''',
# Local-only Postgres password in docker-compose.yml (dev container)
'''development_password''',
]
paths = [
'''pnpm-lock\.yaml''',
'''.*/coverage/.*''',
'''.*/dist/.*''',
'''.*/node_modules/.*''',
]