Validate that deny-packages purls are complete

This commit is contained in:
Justin Holguín
2024-04-29 16:46:21 +00:00
committed by GitHub
parent fcc66c23b3
commit 5f0808ffb1
4 changed files with 27 additions and 1 deletions
Generated Vendored
+12
View File
@@ -988,6 +988,12 @@ const PackageURL = z
message: `Error parsing package-url: ${purl.error}`
});
}
if (!purl.name) {
context.addIssue({
code: z.ZodIssueCode.custom,
message: `Error parsing package-url: name is required`
});
}
});
const PackageURLWithNamespace = z
.string()
@@ -50013,6 +50019,12 @@ const PackageURL = z
message: `Error parsing package-url: ${purl.error}`
});
}
if (!purl.name) {
context.addIssue({
code: z.ZodIssueCode.custom,
message: `Error parsing package-url: name is required`
});
}
});
const PackageURLWithNamespace = z
.string()
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long