fix(package-verifier): reject overview responses without a procedure count (#2936)
* fix(package-verifier): reject overview responses without a procedure count The analyze and inspect checks compared procedure_count with `< 1`, and an absent or null normalized_result makes that comparison false, so a binary_overview response without its required result passed the platform smoke check. Require an integer procedure count before the positive-count comparison. * test(package-verifier): cover malformed overview receipts --------- Co-authored-by: REA Maintenance <76467478+morluto@users.noreply.github.com>
This commit is contained in:
co-authored by
REA Maintenance
parent
64041e3072
commit
4758ba30b6
@@ -8,4 +8,10 @@ export function assertLinuxPackageProviderFailure(execution: {
|
||||
export function verifyPackagePlatform(input: {
|
||||
readonly cli: string;
|
||||
readonly environment: Readonly<Record<string, string | undefined>>;
|
||||
readonly platform?: string;
|
||||
readonly runCommand?: (
|
||||
command: string,
|
||||
arguments_: readonly string[],
|
||||
environment: Readonly<Record<string, string | undefined>>,
|
||||
) => Promise<string>;
|
||||
}): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user