Skip to content

Commit b385654

Browse files
pranavcodeantclaude
andcommitted
Fix secrets false-positive filter ignoring includeFalsePositives flag
The local post-fetch filter for secrets was unconditionally stripping issues with confidence_score='false_positive', overriding the server-side include_false_positives param and making the CLI flag have no effect. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d46b3a7 commit b385654

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/scans/fetchAdvancedScanResults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ export async function fetchAdvancedScanResults(repo, commitId, resultType, opts
299299
}
300300
}
301301

302-
// Filter secrets false positives
303-
if (resultType === ADVANCED_RESULT_TYPES.SECRETS) {
302+
// Filter secrets false positives only when caller explicitly excludes them
303+
if (resultType === ADVANCED_RESULT_TYPES.SECRETS && !includeFalsePositives) {
304304
issues = issues.filter((issue) => String(issue.confidence_score || '').toLowerCase() !== 'false_positive');
305305
}
306306

0 commit comments

Comments
 (0)