bake: fix attest disabled attribute

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2025-01-21 14:25:43 +01:00
parent ed5ad08108
commit 4b68aa828a
3 changed files with 6 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
"type": "provenance" "type": "provenance"
}, },
{ {
"disabled": "true", "disabled": true,
"type": "sbom" "type": "sbom"
} }
], ],

View File

@@ -238,6 +238,9 @@ export class Bake {
case 'type': case 'type':
attestEntry.type = value; attestEntry.type = value;
break; break;
case 'disabled':
attestEntry.disabled = Util.parseBool(value);
break;
default: default:
attestEntry[key] = value; attestEntry[key] = value;
} }

View File

@@ -52,7 +52,8 @@ export interface Target {
export interface AttestEntry { export interface AttestEntry {
type: string; type: string;
[key: string]: string; disabled?: string | boolean;
[key: string]: string | boolean | undefined;
} }
export interface CacheEntry { export interface CacheEntry {