Default CI/security configuration to minimize risk while keeping automated findings meaningful.
Apply these rules: 1) Enforce least-privilege GitHub Actions permissions
permissions: {} in the workflow to ensure the token has no default capabilities.Example:
permissions: {}
2) Treat security scanner results as actionable—exclude only confirmed non-issues
asserts used only to satisfy type checking), exclude the specific rule(s) rather than disabling scanning broadly.Example:
semgrep scan \
--oss-only --verbose --metrics=off --config=r/all \
--exclude-rule <tool.rule-id-1> \
--exclude-rule <tool.rule-id-2>
Result: workflows don’t grant unnecessary token privileges, and security scanning stays high-signal by suppressing only verified false positives/irrelevant checks.