@salesforce/b2c-tooling-sdk / security / SecurityFinding
Interface: SecurityFinding
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:71
A single security finding.
Properties
baselined?
optionalbaselined:boolean
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:88
True when the finding matches the baseline.
category
category:
SecurityCategory
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:75
confidence
confidence:
SecurityConfidence
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:74
cwe
cwe: readonly
string[]
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:76
docsUrl
docsUrl:
string
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:82
fingerprint
fingerprint:
string
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:84
Stable identifier used by baselines; survives line moves.
location
location:
SecurityLocation
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:78
message
message:
string
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:77
notOnPathCartridge?
optionalnotOnPathCartridge:string
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:100
Set to the cartridge name when the file is in a cartridge that isn't on the cartridge path the scan used. The site doesn't run that code; route rules can't see how it would compose, so treat these findings as lower priority unless the cartridge is on another site's path.
referenceCartridge?
optionalreferenceCartridge:string
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:94
Set to the cartridge name when the finding is in an SFRA or SiteGenesis reference cartridge (code the project deploys but usually doesn't edit; fix it with an overlay cartridge).
remediation
remediation:
string
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:81
ruleId
ruleId:
string
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:72
severity
severity:
SecuritySeverity
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:73
snippet
snippet:
string
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:80
The source line the finding starts on, trimmed.
suppression?
optionalsuppression:object
Defined in: packages/b2c-tooling-sdk/src/security/types.ts:86
Set when an inline comment suppresses the finding.
kind
kind:
"inline"
reason?
optionalreason:string