sec-report-kit 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/CHANGELOG.md +0 -6
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/PKG-INFO +1 -1
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/pyproject.toml +1 -1
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/cli.py +20 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/tests/test_cli.py +8 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/.gitattributes +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/.github/workflows/pip-audit.yml +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/.github/workflows/publish-pypi.yml +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/.github/workflows/publish-testpypi.yml +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/.github/workflows/trivy-fs-audit.yml +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/.github/workflows/unit-test-coverage-gate.yml +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/.gitignore +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/README.md +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/bandit-gaps-vs-sast-open-source-tools.md +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/check_assets.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/requirements.txt +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/download_safety_db.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/download_safety_db.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/download_safety_db.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/install_external_clis.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/install_tools.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/install_tools.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_bandit_html.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_bandit_html.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_checkov_html.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_checkov_html.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_codeql_html.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_codeql_html.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_consolidated_html.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_consolidated_html.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_gitleaks_html.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_gitleaks_html.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_osv_scanner_html.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_osv_scanner_html.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_pip_audit_html.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_pip_audit_html.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_safety_html.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_safety_html.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_semgrep_html.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_semgrep_html.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_tfsec_html.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_tfsec_html.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_trivy_html.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_trivy_html.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_trufflehog_html.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/render_trufflehog_html.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_bandit.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_bandit.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_checkov.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_checkov.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_codeql.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_codeql.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_gitleaks.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_gitleaks.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_osv_scanner.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_osv_scanner.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_pip_audit.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_pip_audit.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_safety.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_safety.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_semgrep.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_semgrep.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_tfsec.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_tfsec.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_trivy.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_trivy.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_trufflehog.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_trufflehog.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_unit_tests_with_coverage.bat +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/scripts/run_unit_tests_with_coverage.sh +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/__init__.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/__main__.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/generate_consolidated_security_report.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/mcp/__init__.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/mcp/server.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/models.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/parsers/__init__.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/parsers/bandit.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/parsers/checkov.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/parsers/codeql.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/parsers/gitleaks.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/parsers/osv_scanner.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/parsers/pip_audit.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/parsers/safety.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/parsers/semgrep.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/parsers/tfsec.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/parsers/trivy.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/parsers/trufflehog.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/report/__init__.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/report/html_renderer.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/services/__init__.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/services/normalize.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/src/sec_report_kit/services/summarize.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/tests/test_html_renderer.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/tests/test_mcp_server.py +0 -0
- {sec_report_kit-0.3.0 → sec_report_kit-0.3.1}/tests/test_parsers.py +0 -0
|
@@ -22,26 +22,20 @@ All notable changes to this project are documented in this file.
|
|
|
22
22
|
- `requirements.txt` now pins `urllib3==2.7.0` to resolve the Trivy-reported CVEs affecting `2.6.3`.
|
|
23
23
|
|
|
24
24
|
## 0.2.6 - 2026-05-17
|
|
25
|
-
|
|
26
25
|
### Added
|
|
27
26
|
- Consolidated report rendering now supports bounded file pickup with `--modified-until`, enabling date-range selection when combined with `--modified-since`.
|
|
28
27
|
|
|
29
28
|
### Changed
|
|
30
|
-
- README examples now document both date-range filtering and "from date until today" usage for consolidated report generation.
|
|
31
29
|
|
|
32
|
-
### Fixed
|
|
33
30
|
- `scripts/render_consolidated_html.bat` no longer forwards the first two positional arguments as unexpected extras on Windows.
|
|
34
31
|
|
|
35
32
|
## 0.2.5 - 2026-05-17
|
|
36
|
-
|
|
37
33
|
### Added
|
|
38
34
|
- New CLI command: `srk render consolidated` to build a single HTML report from all supported scanner reports in an input folder.
|
|
39
35
|
- New helper scripts for consolidated rendering:
|
|
40
36
|
- `scripts/render_consolidated_html.sh`
|
|
41
|
-
- `scripts/render_consolidated_html.bat`
|
|
42
37
|
|
|
43
38
|
### Changed
|
|
44
|
-
- `src/sec_report_kit/generate_consolidated_security_report.py` now acts as a wrapper that accepts `--input`, `--output`, and `--target`, and delegates to the consolidated CLI renderer.
|
|
45
39
|
|
|
46
40
|
### Fixed
|
|
47
41
|
- Unified package version metadata by aligning `src/sec_report_kit/__init__.py` with the project version.
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "sec-report-kit"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.1"
|
|
8
8
|
description = "Generate HTML security reports from Trivy, pip-audit, Safety, Bandit, and Gitleaks JSON"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -7,6 +7,7 @@ from typing import Any
|
|
|
7
7
|
|
|
8
8
|
import typer
|
|
9
9
|
|
|
10
|
+
from sec_report_kit import __version__
|
|
10
11
|
from sec_report_kit.parsers import detect_source_type
|
|
11
12
|
from sec_report_kit.parsers.bandit import parse_bandit_json
|
|
12
13
|
from sec_report_kit.parsers.checkov import parse_checkov_json
|
|
@@ -29,6 +30,25 @@ app.add_typer(render_app, name="render")
|
|
|
29
30
|
app.add_typer(mcp_app, name="mcp")
|
|
30
31
|
|
|
31
32
|
|
|
33
|
+
def _version_callback(value: bool) -> None:
|
|
34
|
+
if value:
|
|
35
|
+
typer.echo(f"sec-report-kit {__version__}")
|
|
36
|
+
raise typer.Exit()
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@app.callback(invoke_without_command=True)
|
|
40
|
+
def _app_callback(
|
|
41
|
+
version: bool = typer.Option(
|
|
42
|
+
False,
|
|
43
|
+
"--version",
|
|
44
|
+
callback=_version_callback,
|
|
45
|
+
is_eager=True,
|
|
46
|
+
help="Show sec-report-kit version and exit",
|
|
47
|
+
),
|
|
48
|
+
) -> None:
|
|
49
|
+
"""Top-level CLI options."""
|
|
50
|
+
|
|
51
|
+
|
|
32
52
|
_CONSOLIDATED_TOOL_OUTPUT_FILES = {
|
|
33
53
|
"pip-audit": "pip-audit-report.html",
|
|
34
54
|
"trivy": "trivy-report.html",
|
|
@@ -287,6 +287,14 @@ def test_serve_mcp_command():
|
|
|
287
287
|
mock_run.assert_called_once_with(transport="stdio")
|
|
288
288
|
|
|
289
289
|
|
|
290
|
+
def test_version_flag_outputs_package_version():
|
|
291
|
+
from sec_report_kit import __version__
|
|
292
|
+
|
|
293
|
+
result = runner.invoke(app, ["--version"])
|
|
294
|
+
assert result.exit_code == 0
|
|
295
|
+
assert f"sec-report-kit {__version__}" in result.output
|
|
296
|
+
|
|
297
|
+
|
|
290
298
|
def test_main_calls_app(monkeypatch):
|
|
291
299
|
"""Covers main() -> app() (cli.py line 89)."""
|
|
292
300
|
import pytest
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|