Skip to content

Commit 3bad827

Browse files
feat: diff-aware security scoring, improved PR comment renderer and CLI output
1 parent 4e17ea5 commit 3bad827

20 files changed

Lines changed: 2352 additions & 39 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919

2020
- run: |
2121
python -m secscore.cli.main pr \
22-
--sarif examples/example-checkmarx.sarif \
22+
--sarif tests/fixtures/pass.sarif \
2323
--policy policy/policy-pr.yml

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ cython_debug/
186186
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187187
# and can be added to the global gitignore or merged into this file. However, if you prefer,
188188
# you could uncomment the following to ignore the entire vscode folder
189-
# .vscode/
189+
.vscode/
190190

191191
# Ruff stuff:
192192
.ruff_cache/
@@ -210,6 +210,9 @@ __marimo__/
210210

211211
# Security scan outputs
212212
*.sarif
213+
pr-comment.md
214+
secscore-result.json
213215

214216
# Allow SARIF examples
215-
!examples/*.sarif
217+
!examples/*.sarif
218+
!tests/fixtures/*.sarif

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Changelog
2+
3+
All notable changes to SecScore will be documented in this file.
4+
5+
The format is based on semantic versioning and follows a simple chronological release history.
6+
7+
---
8+
9+
## v0.2.0 — 2026-03
10+
11+
### Added
12+
13+
* Diff-aware filtering to evaluate only findings introduced in the Pull Request.
14+
* **Security Diff** section in PR comments showing vulnerability changes by severity.
15+
* Improved PR comment UX with clearer decision explanation.
16+
* CLI output rendering using Rich for better terminal readability.
17+
* SARIF fixtures for deterministic testing (`PASS`, `REVIEW`, `FAIL` scenarios).
18+
* CI workflow to validate engine behavior during development.
19+
20+
### Improved
21+
22+
* PR comment layout for better readability during code review.
23+
* Decision explanation to clarify why a PR was blocked or requires review.
24+
25+
---
26+
27+
## v0.1.0 — Initial Release
28+
29+
### Added
30+
31+
* Initial SecScore scoring engine.
32+
* SARIF normalization layer for scanner results.
33+
* Policy-based scoring system using YAML configuration.
34+
* PASS / REVIEW / FAIL decision model.
35+
* Pull Request comment generation with security findings summary.
36+
* GitHub CLI entrypoint for CI/CD usage.
37+
38+
---
39+
40+
## Notes
41+
42+
SecScore aims to reduce **security scanner noise** and provide **objective merge decisions** in CI/CD pipelines by introducing a policy-driven security score between scanners and Pull Requests.

docs/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
secscore.dev

0 commit comments

Comments
 (0)