Repository navigation
feat: sensitive-data and supply-chain evidence in Plan and Verify (preview) - #697
Merged
Merged
Conversation
…eview) fixmap plan/verify --sensitive-data (MCP sensitiveData on fixmap_plan and fixmap_verify) attach lexical source-to-sink flows from the local fixmap-sensitive-data provider that touch the report's ranked, impact or changed paths: file, line, category and rule ids only, never matched values. Verify reconstructs each changed file's pre-change lines from the diff and adds an advisory (info) sensitive-data-flow-introduced finding for flows the diff added, including flows created by a new import. fixmap plan --supply-chain <bundle.json> (MCP supplyChain) attaches findings from a validated normalized scanner/SBOM bundle for packages declared in manifests among the report's paths, with tool, database, document fingerprint and bundle SHA-256 provenance. Both are additive report fields checked by validateFixMapReport and listed as previews in the feature catalog. isRepositoryRelativePath and inlineProse moved to shared modules so the new validators and renderers reuse them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merged
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the "showing it in Plan and Verify" remainder of two v0.10.0 ledger rows. Both surfaces are opt-in, additive, validated, and catalogued as previews. Nothing here uses the network, executes scanned code, or runs a scanner.
Ledger row: Sensitive-data flow evidence
fixmap plan --sensitive-data/fixmap verify --sensitive-data, plus MCPsensitiveData: trueonfixmap_planandfixmap_verify.fixmap-sensitive-dataprovider. The collector is now a synchronouscollectSensitiveDataSignals, and the provider wraps it. Flows are attached when either end touches the report's ranked, impact or changed paths (Verify also includes the diff's changed paths and the recalculated impact). Same-file and direct-import flows are capped at 50, andomittedFlowscounts the rest.[a-z0-9-], so a tampered report can't smuggle a value through that field.+lines plus-lines; the rules are single-line) and reruns the classifier and import graph. Flows that are absent before the change getintroducedByDiff: trueand produce an advisoryinfofinding,sensitive-data-flow-introduced, so--fail-on warninggates are unaffected. A flow created only by a newly added import is caught as well. If the diff was sampled (diff-text-truncated), the check reportsintroducedCheck: "unavailable-diff-truncated"and raises no finding.Ledger row: Supply-chain evidence
fixmap plan --supply-chain <bundle.json>and MCPsupplyChainonfixmap_plan. Verify rejects--supply-chainas a plan-only option.validateSupplyChainEvidenceBundle, and hashed over its exact bytes. Errors print the validator message and never the file contents.package.jsonedit. Governing manifests of ranked source files are not included. Each finding carries the package (name, version, purl), the matching manifest paths, advisory, fixed version, license and policy.report.supplyChain.sourcerecords tool, tool version, database version, the producer's document fingerprint,generatedAtand the bundle SHA-256. The cap is 50 findings, andomittedFindingscounts the rest.Shared
validateFixMapReportchecks both fields (isReportSensitiveDataandisReportSupplyChain).isRepositoryRelativePathmoved topaths.tsandinlineProsetomarkdown.ts, so the new modules can share them without an import cycle.reportPaths()is extracted fromreport-evidence.ts.packages/action/dist/index.mjswas rebuilt (npm run build:action).packages/action/srcis untouched.Tests
report-sensitive-supply.test.ts: attachment and omission, with and without the flag. The whole report JSON and Markdown are checked for the absence of the fixture secrets. Verify cases: a newly introduced same-file flow, a flow from a new import, a pre-existing flow (not flagged), a truncated diff, and the flag off. Supply-chain attachment, omission and provenance are covered, as are malformed bundles and tampered fields for both report blocks.--supply-chain, and a malformed bundle error that leaks no contents. The preview-set test is updated.Local runs: typecheck, lint, Core 908 passed (1 skipped), CLI 374 passed, and
check:action-bundlepassed. The fullnpm run ciwas not run locally; GitHub CI is the gate.Follow-up I noticed but left alone:
--evidenceis documented as repeatable but sits inSINGLE_VALUE_FLAGS, so a second--evidenceis rejected.🤖 Generated with Claude Code