Skip to content

Commit 661ddff

Browse files
leliaclaude
andauthored
chore(release): 3.2.0 (#113)
Release prep for 3.2.0: bump every version-bearing file, refresh uv.lock, synchronize current-release references in README and docs/**, and stamp the [Unreleased] changelog section as [3.2.0] - 2026-09-10. Bundles #110 (TruffleHog verification and fail-closed scan errors), #111 (CLI/action input parity plus the documentation consistency pass) and #112 (Java SAST rule rewrite, and the Socket Python CLI 2.8.0 bump in the heavy and app-tests images, which landed with that PR). The changelog section was condensed and reorganized around a new "Upgrade notes" block, because four of these changes alter which findings a scan produces and the per-PR entries buried that. Two consequences of #110 were missing from the changelog entirely and are now stated: on the default path (trufflehog_show_unverified off) verified secrets become critical and blocking where previously no secret could block a run, and verification is a live check that sends candidates to third-party validation endpoints. The Java volume reduction is quoted as the benchmark doc's own -92% headline with its scoping caveat (~26% of the drop is new test and example path exclusions, not rule logic), rather than the -94.6% unique-findings-in- mature-libraries-only subset the per-PR entry used. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent c296024 commit 661ddff

12 files changed

Lines changed: 175 additions & 138 deletions

‎CHANGELOG.md‎

Lines changed: 87 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -8,58 +8,109 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
88

99
## [Unreleased]
1010

11+
## [3.2.0] - 2026-09-10
12+
13+
Scanner accuracy release. TruffleHog secret verification and the Java SAST rule
14+
set were both fixed, and both change which findings a scan produces — read the
15+
upgrade notes before rolling this out to a pipeline that gates on findings.
16+
17+
### Upgrade notes
18+
19+
Nothing here requires a configuration change, but expect different results on
20+
the first run after upgrading.
21+
22+
- **TruffleHog secrets can now block a run.** With `trufflehog_show_unverified`
23+
off (the default), the connector passed `--no-verification`, which disabled
24+
verification outright instead of filtering to verified results. Severity is
25+
derived from each finding's `Verified` flag, so every result came back
26+
unverified, low severity and non-blocking: on the default path no secret
27+
could ever block a run, the exact inverse of intent. Verification now always
28+
runs and the setting only selects result types, so a real leaked credential
29+
is reported as critical and blocking. (#110)
30+
- **TruffleHog verification reaches third-party endpoints.** Verification is a
31+
live check: candidate credentials are sent to the issuing provider's
32+
validation endpoint on every scan. This is TruffleHog's own default behavior,
33+
but it is new for runs with `trufflehog_show_unverified` off. Egress
34+
restricted runners should account for it. (#110)
35+
- **A TruffleHog scan that cannot run now fails the run.** A non-zero exit, a
36+
missing binary or a source error was logged and converted into an empty clean
37+
result, so a broken install or a malformed exclude pattern was
38+
indistinguishable from a repository with no secrets. These now fail with
39+
TruffleHog's exit code and stderr — the same fail-closed idiom as an
40+
unresolvable `changed_files` scope in 3.1.0. (#110)
41+
- **Java SAST findings shift substantially, in both directions.** Twelve rules
42+
were rewritten (see Fixed). Existing Java baselines will lose most of their
43+
current findings and gain new ones at call sites the old patterns could never
44+
match, so re-baseline instead of diffing against a previous run. (#112)
45+
1146
### Added
12-
- `--version` CLI flag.
13-
- `--socket-org` CLI flag, the command-line equivalent of the `socket_org`
14-
action input and the `SOCKET_ORG` environment variable. The API key remains
15-
environment-only.
16-
- GitHub Action inputs `verbose`, `console_tabular_enabled` and
17-
`console_json_enabled`, delivered as `INPUT_VERBOSE`,
18-
`INPUT_CONSOLE_TABULAR_ENABLED` and `INPUT_CONSOLE_JSON_ENABLED` and honored
19-
from the environment the same way as the matching CLI flags.
20-
- GitHub Action inputs `jira_url` and `jira_project`, matching the names used in
21-
the documentation; `server` and `project` remain as aliases. Also added
22-
`ms_sentinel_shared_key` (alias of `ms_sentinel_key`),
23-
`opengrep_notification_method` and `trufflehog_notification_method`
24-
(`notification_method` remains as an alias).
25-
- `docs/parameters.md` gains a **Name Mapping** section listing every setting as
26-
CLI flag, GitHub Action input, environment variable and JSON key, generated
27-
from `connectors.yaml`, `notifications.yaml` and `action.yml`. A new test
28-
keeps `action.yml` and the parameter declarations in step.
29-
- `scripts/check_release_docs.py` now also checks that action references use an
30-
exact release tag and that the bundled scanner versions quoted in the guides
31-
match the Dockerfile pins; `--write` updates both.
47+
- `--version` and `--socket-org` CLI flags. `--socket-org` is the command-line
48+
equivalent of the `socket_org` action input and the `SOCKET_ORG` environment
49+
variable; the API key remains environment-only. (#111)
50+
- Action inputs for settings that previously existed only as CLI flags or
51+
environment variables: `verbose`, `console_tabular_enabled`,
52+
`console_json_enabled`, `jira_url`, `jira_project`, `ms_sentinel_shared_key`,
53+
`opengrep_notification_method` and `trufflehog_notification_method`. The
54+
older `server`, `project`, `ms_sentinel_key` and `notification_method` names
55+
remain as aliases. (#111)
56+
- A **Name Mapping** section in `docs/parameters.md` listing every setting as
57+
CLI flag, action input, environment variable and JSON key, generated from
58+
`connectors.yaml`, `notifications.yaml` and `action.yml`, plus a test that
59+
keeps `action.yml` and the parameter declarations in step. (#111)
3260
- Documentation for the `-heavy` image variant and for when the standard image
33-
is the right choice.
61+
is the right choice. (#111)
3462
- Java SAST: `java-xss` (CWE-79) and `java-xpath-injection` (CWE-643) taint
3563
rules; an OWASP Benchmark scorer (`scripts/score_owasp_benchmark.py`) with the
3664
method and results in `docs/java-sast-benchmark.md`; and annotated Java rule
3765
regression fixtures under `tests/fixtures/opengrep/java`, which CI now runs
3866
against the opengrep release pinned in the Dockerfile. (#112)
67+
- `scripts/check_release_docs.py` also verifies that action references use an
68+
exact release tag and that the bundled scanner versions quoted in the guides
69+
match the Dockerfile pins; `--write` updates both. (#111)
3970

4071
### Changed
72+
- TruffleHog reports verified and unknown results by default, and adds
73+
unverified results only when `trufflehog_show_unverified` is on. Verified
74+
findings are critical and blocking; unknown and unverified findings remain
75+
low and non-blocking. Boolean strings are now coerced wherever the setting
76+
comes from, so a Socket dashboard config supplying `"false"` is no longer
77+
read as on. (#110)
4178
- Socket Python CLI 2.7.0 → 2.8.0 in the heavy and app-tests images. (#112)
4279

4380
### Removed
4481
- The `workspace` and `GITHUB_API_URL` GitHub Action inputs. Neither had an
4582
effect: the action always scans `GITHUB_WORKSPACE`, and `GITHUB_API_URL` is
4683
provided by the runner. Workflows that still set them receive an
47-
"Unexpected input" warning and otherwise behave as before.
84+
"Unexpected input" warning and otherwise behave as before. (#111)
4885
- `docs/alert-quality-improvement-plan.md`, a draft working document from a
49-
hackathon branch. The plan itself is now tracked separately.
86+
hackathon branch. The plan itself is now tracked separately. (#111)
5087

5188
### Fixed
52-
- TruffleHog now always verifies candidates, reports verified and unknown
53-
results by default, and adds unverified results only when requested. Verified
54-
findings are critical/blocking; unknown and unverified findings remain
55-
low/non-blocking. Boolean string configuration is handled correctly. (#110)
56-
- Missing or unsuccessful TruffleHog scans now fail the run instead of returning
57-
an empty clean result, including source errors surfaced by
58-
`--fail-on-scan-errors`. (#110)
89+
- **Java SAST precision and recall.** Twelve rules were rewritten after a
90+
customer evaluation reported roughly 90% false positives. Two systematic
91+
defects drove the recall gap: patterns written with simple type names never
92+
matched fully qualified call sites, and crypto rules matched exact algorithm
93+
literals instead of transformation strings. On OWASP Benchmark v1.2 recall
94+
rises from 13.2% to 71.3% while precision improves from 64.5% to 76.7%; on
95+
six mature open source projects (~17,400 files) findings drop by 92%, and the
96+
four lint-style rules (`java-empty-catch-block`, `java-system-out-usage`,
97+
`java-reflection-injection`, `java-hardcoded-credentials`) report nothing
98+
there — the first three alone produced 74% of the original noise. About a
99+
quarter of that volume drop comes from new test, benchmark and example path
100+
exclusions rather than rule logic; `docs/java-sast-benchmark.md` records the
101+
method, the per-category numbers and the caveats. (#112)
102+
- Java SAST false positives removed along the way: `RSA/ECB/...` is no longer a
103+
weak cipher; a hardened cookie no longer hides an unhardened neighbour;
104+
parameterized `JdbcTemplate`/`PreparedStatement` calls, the four-argument
105+
LDAP `search(base, filter, args, controls)` form, `MessageDigest.update()`,
106+
and the `Path.startsWith`/canonical-path containment idioms are no longer
107+
reported; SnakeYAML `SafeConstructor` loads are excluded (including the 2.0
108+
`LoaderOptions` form) while `loadAs`/`loadAll` are now sinks; `"10.0.0.1"` is
109+
reported as a hardcoded IP and `"10.2.3"` is not. (#112)
59110
- The Sentinel and Sumo Logic notifiers now read `ms_sentinel_workspace_id`,
60111
`ms_sentinel_key` and `sumologic_endpoint` from CLI flags, action inputs and
61112
dashboard configuration, in addition to the `MS_SENTINEL_*` and
62-
`SUMO_LOGIC_HTTP_SOURCE_URL` environment variables.
113+
`SUMO_LOGIC_HTTP_SOURCE_URL` environment variables. (#111)
63114
- Documentation consistency pass across the GitHub Action, Docker and local
64115
installation guides. CLI examples use the flag names that
65116
`socket-basics --help` prints. Docker examples keep the facts file inside the
@@ -71,25 +122,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
71122
match the code, GitLab and Jenkins examples override the image entrypoint,
72123
pre-commit hook examples use the published image name, and the installation
73124
guide states the Python 3.10 requirement and the npm install path for the
74-
Socket CLI. New guidance covers large repositories and facts-file size.
75-
- **Java SAST precision and recall.** Twelve Java rules were rewritten after a
76-
customer evaluation reported roughly 90% false positives. On six mature open
77-
source projects (~17,400 files) the rule set now emits about 95% fewer
78-
findings, and the lint-style rules (`java-empty-catch-block`,
79-
`java-system-out-usage`, `java-reflection-injection`,
80-
`java-hardcoded-credentials`) report nothing there. On OWASP Benchmark v1.2,
81-
recall rises from 13% to 71% while precision improves from 64.5% to 76.7%.
82-
Two systematic defects drove the recall gap: patterns written with simple
83-
type names never matched fully qualified call sites, and crypto rules matched
84-
exact algorithm literals instead of transformation strings. (#112)
85-
- Java SAST false positives removed along the way: `RSA/ECB/...` is no longer a
86-
weak cipher; a hardened cookie no longer hides an unhardened neighbour;
87-
parameterized `JdbcTemplate`/`PreparedStatement` calls, the four-argument
88-
LDAP `search(base, filter, args, controls)` form, `MessageDigest.update()`,
89-
and the `Path.startsWith`/canonical-path containment idioms are no longer
90-
reported; SnakeYAML `SafeConstructor` loads are excluded (including the 2.0
91-
`LoaderOptions` form) while `loadAs`/`loadAll` are now sinks; `"10.0.0.1"` is
92-
reported as a hardcoded IP and `"10.2.3"` is not. (#112)
125+
Socket CLI. New guidance covers large repositories and facts-file size. (#111)
126+
- TruffleHog parameter documentation: exclude paths accept files and globs, not
127+
only directories, and `trufflehog_show_unverified` widens result types rather
128+
than toggling verification. A JSON configuration example named a nonexistent
129+
`show_unverified` key. (#110)
93130

94131
## [3.1.0] - 2026-09-02
95132

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Run Socket Basics
3636
# Pin to a commit SHA for supply-chain safety.
3737
# Dependabot will keep this up to date automatically — see docs/github-action.md.
38-
uses: SocketDev/socket-basics@<sha> # v3.1.0
38+
uses: SocketDev/socket-basics@<sha> # v3.2.0
3939
env:
4040
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
4141
with:
@@ -179,10 +179,10 @@ For GitHub Actions, see the [Quick Start](#-quick-start---github-actions) above
179179

180180
```bash
181181
# Pull the pre-built image (recommended — no build step required)
182-
docker pull ghcr.io/socketdev/socket-basics:3.1.0
182+
docker pull ghcr.io/socketdev/socket-basics:3.2.0
183183
184184
# Run scan
185-
docker run --rm -v "$PWD:/workspace" ghcr.io/socketdev/socket-basics:3.1.0 \
185+
docker run --rm -v "$PWD:/workspace" ghcr.io/socketdev/socket-basics:3.2.0 \
186186
--workspace /workspace \
187187
--python \
188188
--secrets \

‎action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: "Socket"
44

55
runs:
66
using: "docker"
7-
image: "docker://ghcr.io/socketdev/socket-basics:3.1.0"
7+
image: "docker://ghcr.io/socketdev/socket-basics:3.2.0"
88
env:
99
# Core GitHub variables (these are automatically available, but we explicitly pass GITHUB_TOKEN)
1010
GITHUB_TOKEN: ${{ inputs.github_token }}

0 commit comments

Comments
 (0)