Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/fetch-github-sbom.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,9 @@ async function processLatestTagStream(spec, existing) {
console.log(` ${spec.id}: ${cacheKey}${isCacheHit ? " (cache hit)" : ""}`);

if (isCacheHit) {
releases[cacheKey] = existingEntry;
// Update tag to cacheKey on every cache hit — idempotent migration from
// the old tag:imageRef format (which broke the nvidiaByTag lookup).
releases[cacheKey] = { ...existingEntry, tag: cacheKey };
} else {
console.log(` ${spec.id}: verifying attestation for ${imageRef}`);
const rawAttestation = await verifyAttestation(imageRef, spec);
Expand Down Expand Up @@ -414,7 +416,7 @@ async function processLatestTagStream(spec, existing) {
}

releases[cacheKey] = {
tag: imageRef,
tag: cacheKey,
imageRef,
digest: null,
attestation,
Expand Down