Commit 6f5d958
fix: suppress CodeQL false positives in formatters.py (#57)
* ci: pin GitHub Actions to commit SHAs for security
Pin all GitHub Actions dependencies to specific commit SHAs instead
of version tags to prevent supply chain attacks. This follows OpenSSF
Scorecard best practices for dependency pinning.
Pinned actions:
- actions/checkout@v5
- actions/create-github-app-token@v2
- actions/setup-python@v6
- actions/upload-artifact@v4
- amannn/action-semantic-pull-request@v6
- astral-sh/setup-uv@v7
- codecov/codecov-action@v5
- github/codeql-action/*@V3
- github/codeql-action/*@v4
- ossf/scorecard-action@v2.4.3
- pypa/gh-action-pypi-publish@release/v1
All SHAs include comments showing the original version tag for
maintainability.
Expected impact: Pinned-Dependencies score 0 → 10
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: suppress CodeQL false positives with explanatory comments
Suppress two categories of CodeQL alerts that are false positives:
1. Clear-text logging (alert #31): The flagged print() statement outputs
public peak data to stdout for CLI users, not logging. No sensitive
data is handled by this tool.
2. Overly permissive regex (alerts #32-35): The emoji removal regex uses
overlapping Unicode ranges intentionally for comprehensive coverage.
Used only for display formatting, not security validation.
Both suppressions include detailed comments explaining why the alerts
are false positives in this context.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent b0a908a commit 6f5d958
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
346 | 349 | | |
347 | 350 | | |
348 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
349 | 356 | | |
350 | 357 | | |
351 | 358 | | |
| |||
0 commit comments