Repository navigation
feat(manifest): ask for the reachability settings in the setup wizards - #1729
Jeppe Fredsgaard Blaabjerg (jfblaa) wants to merge 4 commits into
Conversation
08f14b1 to
bc39c00
Compare
bc39c00 to
78fadc7
Compare
PR SummaryLow Risk Overview The wizards ask whether to compile before reachability ( Invalid or tool-incompatible Changelog and broad unit/integration tests cover inheritance, overrides, validation, and write behavior. Reviewed by Cursor Bugbot for commit 78fadc7. Configure here. |
78fadc7 to
14db272
Compare
14db272 to
8e07fbd
Compare
8e07fbd to
f245568
Compare
f245568 to
d957ff9
Compare
244ddca to
283e6d4
Compare
283e6d4 to
88d51b6
Compare
524d8d5 to
bda599d
Compare
bda599d to
4c30549
Compare
4c30549 to
a596c09
Compare
Martin Torp (mtorp)
left a comment
There was a problem hiding this comment.
Two wizard choices can change which settings a scan actually uses. The inline comments trace both cases and include the source-comment notes.
a596c09 to
02ccecc
Compare
02ccecc to
5730a28
Compare
5730a28 to
0abf317
Compare
`socket manifest setup` and `socket manifest setup --dynamic-sbom-inference` ask, for each build tool that generates facts: - whether to build the project before reachability analysis. A no writes "none" only to override an inherited "compile", and otherwise leaves the setting unset; - Maven, Gradle and sbt: whether to use a different JDK for the analysis, showing the one in effect, inherited or not; - .NET: whether to start a framework-dependent build's analysis on a given runtime, taking major.minor or major.minor.patch[-prerelease]. The wizards read socket.json as written, so they run under an invalid reachability value: they warn about what a build tool cannot take and replace it with the answers, and ignore an invalid inherited value for their defaults.
`socket manifest setup --dynamic-sbom-inference` wrote every accepted default of a directory's section into its socket.json, so accepting an inherited reachability value pinned it there. It now keeps only the fields that differ from what the directory inherits, as it does for a build.
Answering no to a different JDK in a directory under a socket.json that sets one writes nothing, and the scan there reads the parent's JDK; answering yes with a blank JDK writes null, and the scan reads none.
0abf317 to
18e4c4b
Compare
Heads up, reviewer
Update wizard to configure reachability settings 🧙♂️
LLM Description written by Claude Code:claude-opus-5-5
socket manifest setupandsocket manifest setup --dynamic-sbom-inferenceask for #1728'sreachabilitysettings for each build tool that generates Socket facts, so they can be set without editing socket.json by hand.Merges with the stack. The Coana release it needs is pinned on v1.x since #1762.
Questions
"none"only to override an inherited"compile".reachabilityvalue is invalid: they warn about one in the socket.json they write and replace it with the answers.Stack
Changelog
In
CHANGELOG.mdunder[Unreleased]:Added
socket manifest setupandsocket manifest setup --dynamic-sbom-inferenceask for the reachability settings, so there is no need to editsocket.jsonby hand.🤖 Generated with Claude Code