Skip to content

Commit 4be1f9d

Browse files
committed
chore: use correct path to sha256 hash for versioned pypi asset
Signed-off-by: Ben Selwyn-Smith <[email protected]>
1 parent b6e3ea3 commit 4be1f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macaron/slsa_analyzer/package_registry/pypi_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def get_sha256(self) -> str | None:
592592
artifact_hash = json_extract(self.package_json, ["urls", 0, "digests", "sha256"], str)
593593
else:
594594
artifact_hash = json_extract(
595-
self.package_json, ["releases", self.component_version, "digests", "sha256"], str
595+
self.package_json, ["releases", self.component_version, 0, "digests", "sha256"], str
596596
)
597597
logger.debug("Found sha256 hash: %s", artifact_hash)
598598
return artifact_hash

0 commit comments

Comments
 (0)