add properties

This commit is contained in:
burnettk 2024-08-15 15:23:10 -04:00
parent 6d581ac535
commit b4cf99d35d
No known key found for this signature in database
1 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,16 @@ def convert_to_sarif(ecr_response):
}
},
"results": [],
"properties": {
"imageID": ecr_response["imageId"]["imageDigest"],
"imageName": ecr_response["repositoryName"],
"repoDigests": [
f"{ecr_response['repositoryName']}@{ecr_response['imageId']['imageDigest']}"
],
"repoTags": [
f"{ecr_response['repositoryName']}:{ecr_response['imageId']['imageTag']}"
],
},
}
],
}