Skip to content

Commit

Permalink
feat: change image data field
Browse files Browse the repository at this point in the history
Since this script won't use the advisory data anymore, the SBOM data can
be simplified.

Signed-off-by: Martin Jediny <[email protected]>
  • Loading branch information
jedinym committed Dec 13, 2024
1 parent 3e107df commit caae869
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sbom/update_component_sbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ def update_sboms(data_path: str, input_path: str, output_path: str) -> None:
with open(data_path, "r") as data_file:
data = json.load(data_file)

component_to_purls_map = get_component_to_purls_map(
data["releaseNotes"]["content"].get("images", [])
)
component_to_purls_map = get_component_to_purls_map(data.get("images", []))
# get all json files in input dir
input_jsons = glob.glob(os.path.join(input_path, "*.json"))
# loop through files
Expand Down

0 comments on commit caae869

Please sign in to comment.