Skip to content

Commit

Permalink
inserted_content does does conform to SARIF schema (#317)
Browse files Browse the repository at this point in the history
inserted_content should be an object of type ArtifactContent.

Signed-off-by: Eric Brown <eric.brown@securesauce.dev>
  • Loading branch information
ericwb authored Mar 4, 2024
1 parent f10b09d commit 2020e9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion precli/renderers/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def to_fix(self, file_name: str, fix: Fix):
start_column=fix.deleted_location.start_column,
end_column=fix.deleted_location.end_column,
),
inserted_content=fix.inserted_content,
inserted_content=sarif_om.ArtifactContent(
fix.inserted_content
),
),
],
)
Expand Down

0 comments on commit 2020e9d

Please sign in to comment.