Skip to content

Commit d0a3d19

Browse files
committed
bump to v2.5.0, add CHANGELOG entry
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
1 parent 5a2fa6a commit d0a3d19

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66

77
[project]
88
name = "socketsecurity"
9-
version = "2.4.20"
9+
version = "2.5.0"
1010
requires-python = ">= 3.11"
1111
license = {"file" = "LICENSE"}
1212
dependencies = [

socketsecurity/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.4.20'
2+
__version__ = '2.5.0'
33
USER_AGENT = f'SocketPythonCLI/{__version__}'

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)