Skip to content

Commit 8791443

Browse files
committed
**Changes:**
1. Renamed `cwe` to `category` to match the blueprint property. 2. Moved it under `properties` instead of a top-level mapping key. 3. Added standard mappings (`identifier`, `title`, `blueprint`) and a `selector` for completeness. This ensures the `category` property is populated from `.attributes.classes[0].id`, so the aggregations filter correctly and the scorecard works.
1 parent 108136f commit 8791443

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/guides/all/owasp-top-10-scorecard.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,18 @@ If the property is not yet included in your `Snyk Vulnerability` blueprint, foll
6969
```yaml showLineNumbers
7070
resources:
7171
- kind: vulnerability
72+
selector:
73+
query: 'true'
7274
port:
7375
entity:
7476
mappings:
75-
//highlight-start
76-
cwe: .attributes.classes[0].id
77-
//highlight-end
77+
identifier: .id
78+
title: .attributes.title
79+
blueprint: '"snykVulnerability"'
80+
properties:
81+
# highlight-start
82+
category: .attributes.classes[0].id
83+
# highlight-end
7884
```
7985
</details>
8086

0 commit comments

Comments
 (0)