File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 2.5.0
4+
5+ ### Added: ` --base-scan-id ` / ` --base-commit-sha ` diff baseline overrides
6+
7+ - New mutually exclusive flags to control which full scan a diff is compared
8+ against, instead of always using the repository's latest head scan:
9+ - ` --base-scan-id <id> ` diffs against that full scan ID verbatim.
10+ - ` --base-commit-sha <sha> ` diffs against the most recent full scan created
11+ from that commit — e.g. the PR's merge base from
12+ ` git merge-base origin/main HEAD ` — so PR diffs are not polluted by
13+ default-branch commits the PR never branched from.
14+ - A ` --base-commit-sha ` with no matching full scan is a hard error (exit code 3,
15+ or ` --exit-code-on-api-error ` ; exit 0 with ` --disable-blocking ` ) rather than a
16+ silent fallback to the head scan, since diffing against the wrong baseline
17+ misreports which alerts a PR introduces.
18+ - Both flags are also settable via ` --config ` files (` base_scan_id ` ,
19+ ` base_commit_sha ` ).
20+ - ** Requirement:** ` --base-commit-sha ` looks up an existing scan — it does not
21+ create one. Using it requires CI to run ` socketcli ` on every commit that lands
22+ on the default branch; see the "Diffing against the merge base" note in
23+ ` docs/cli-reference.md ` for the failure modes and a backfill pattern.
24+
325## 2.4.20
426
527### Changed: bump pinned @coana-tech/cli to 15.8.8
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66
77[project ]
88name = " socketsecurity"
9- version = " 2.4.20 "
9+ version = " 2.5.0 "
1010requires-python = " >= 3.11"
1111license = {"file" = " LICENSE" }
1212dependencies = [
Original file line number Diff line number Diff line change 11__author__ = 'socket.dev'
2- __version__ = '2.4.20 '
2+ __version__ = '2.5.0 '
33USER_AGENT = f'SocketPythonCLI/{ __version__ } '
You can’t perform that action at this time.
0 commit comments