Skip to content

Commit 1c158cb

Browse files
authored
Make "invocation" an object per spec (#50)
* Make "invocation" an object per spec The spec states "invocation" is an object, not a string: https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/sarif-v2.1.0-errata01-os-complete.html#_Toc141790817 * Update CHANGELOG.md Add info for PR #50 as requested.
1 parent a9f2180 commit 1c158cb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828
- Made issue sorting and grouping more consistent across the various reports.
2929
- Multiple occurrences of a single issue are now sorted by location in the Word report.
3030
- Improved debug and version reporting for when multiple versions are installed.
31+
- For the copy operation, "invocation" in the resulting sarif is changed to an object to match the spec.
3132

3233
### Compatibility
3334

sarif/operations/copy_op.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ def generate_sarif(
6060
"properties": conversion_properties,
6161
}
6262
},
63-
"invocation": cmdline,
63+
"invocation": {
64+
"commandLine": cmdline,
65+
},
6466
}
6567
results = input_run.get_results()
6668
filter_stats = input_run.get_filter_stats()

0 commit comments

Comments
 (0)