4242 required : false
4343 default : false
4444 sbom :
45- type : string
45+ type : boolean
4646 description : " Generate SBOM attestation for the build"
4747 required : false
48+ default : false
4849 set :
4950 type : string
5051 description : " List of targets values to override (eg. targetpattern.key=value)"
@@ -176,7 +177,7 @@ jobs:
176177 const inpFiles = Util.getInputList('files');
177178 const inpOutput = core.getInput('output');
178179 const inpPush = core.getBooleanInput('push');
179- const inpSbom = core.getInput ('sbom');
180+ const inpSbom = core.getBooleanInput ('sbom');
180181 const inpSet = Util.getInputList('set', {ignoreComma: true, quote: false});
181182 const inpSign = core.getInput('sign');
182183 const inpTarget = core.getInput('target');
@@ -220,7 +221,7 @@ jobs:
220221 def = await bake.getDefinition({
221222 files: inpFiles,
222223 overrides: inpSet,
223- sbom: inpSbom,
224+ sbom: inpSbom ? 'true' : 'false' ,
224225 source: bakeSource,
225226 targets: [inpTarget],
226227 githubToken: inpGitHubToken
@@ -376,7 +377,7 @@ jobs:
376377 const inpFiles = Util.getInputList('files');
377378 const inpOutput = core.getInput('output');
378379 const inpPush = core.getBooleanInput('push');
379- const inpSbom = core.getInput ('sbom');
380+ const inpSbom = core.getBooleanInput ('sbom');
380381 const inpSet = Util.getInputList('set', {ignoreComma: true, quote: false});
381382 const inpTarget = core.getInput('target');
382383 const inpMetaImages = core.getMultilineInput('meta-images');
@@ -400,7 +401,7 @@ jobs:
400401 const def = await bake.getDefinition({
401402 files: inpFiles,
402403 overrides: inpSet,
403- sbom: inpSbom,
404+ sbom: inpSbom ? 'true' : 'false' ,
404405 source: bakeSource,
405406 targets: [inpTarget],
406407 githubToken: inpGitHubToken
0 commit comments