bake: fix attest disabled attribute
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
"type": "provenance"
|
"type": "provenance"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"disabled": "true",
|
"disabled": true,
|
||||||
"type": "sbom"
|
"type": "sbom"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user