Commit 9951ba3
authored
feat: propagate resultId to SARIF (#359)
<!--
Thanks for contributing to 2ms by offering a pull request.
-->
Closes #
**Proposed Changes**
Have the resultId in SARIF report.
I put the resultId in the field result.properties.resultId.
I was thinking of putting in the result.Guid field but the format does
not match the pattern of
"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
in the SARIF schema.
https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json
<!--
Please describe the big picture of your changes here. If it fixes a bug
or resolves a feature request, be sure to link to that issue.
-->
**Checklist**
- [x] I covered my changes with tests.
- [ ] I Updated the documentation that is affected by my changes:
- [ ] Change in the CLI arguments
- [ ] Change in the configuration file
I submit this contribution under the Apache-2.0 license.1 parent f606f03 commit 9951ba3
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| |||
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| 203 | + | |
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
| |||
230 | 233 | | |
231 | 234 | | |
232 | 235 | | |
| 236 | + | |
233 | 237 | | |
234 | 238 | | |
235 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
0 commit comments