@@ -176,7 +176,7 @@ jobs:
176176 script : |
177177 await exec.exec('npm', ['install', '--prefer-offline', '--no-audit', core.getInput('dat-module')]);
178178 -
179- name : Set includes
179+ name : Set outputs
180180 id : set
181181 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
182182 env :
@@ -237,21 +237,22 @@ jobs:
237237 if (inpPlatforms.length === 0) {
238238 includes.push({
239239 index: 0,
240- runner: runner === 'auto' ? 'ubuntu-24.04' : runner
240+ runner: runner === 'auto' ? 'ubuntu-24.04' : runner,
241+ sign: sign
241242 });
242243 } else {
243244 inpPlatforms.forEach((platform, index) => {
244245 includes.push({
245246 index: index,
246247 platform: platform,
247- runner: runner === 'auto' ? ((!privateRepo && platform.startsWith('linux/arm')) ? 'ubuntu-24.04-arm' : 'ubuntu-24.04') : runner
248+ runner: runner === 'auto' ? ((!privateRepo && platform.startsWith('linux/arm')) ? 'ubuntu-24.04-arm' : 'ubuntu-24.04') : runner,
249+ sign: sign
248250 });
249251 });
250252 }
251253 core.info(JSON.stringify(includes, null, 2));
252254 core.setOutput('includes', JSON.stringify(includes));
253255 });
254- core.setOutput('sign', sign);
255256
256257 build :
257258 runs-on : ${{ matrix.runner }}
@@ -471,7 +472,7 @@ jobs:
471472 -
472473 name : Signing attestation manifests
473474 id : signing-attestation-manifests
474- if : ${{ needs.prepare.outputs .sign && inputs.output == 'image' }}
475+ if : ${{ matrix .sign && inputs.output == 'image' }}
475476 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
476477 env :
477478 INPUT_IMAGE-NAMES : ${{ inputs.meta-images }}
@@ -518,7 +519,7 @@ jobs:
518519 -
519520 name : Signing local artifacts
520521 id : signing-local-artifacts
521- if : ${{ needs.prepare.outputs .sign && inputs.output == 'local' }}
522+ if : ${{ matrix .sign && inputs.output == 'local' }}
522523 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
523524 env :
524525 INPUT_LOCAL-OUTPUT-DIR : ${{ env.LOCAL_EXPORT_DIR }}
@@ -570,18 +571,21 @@ jobs:
570571 INPUT_IMAGE-DIGEST : ${{ steps.build.outputs.digest }}
571572 INPUT_ARTIFACT-NAME : ${{ inputs.artifact-name }}${{ steps.prepare.outputs.platform-pair-suffix }}
572573 INPUT_ARTIFACT-UPLOAD : ${{ inputs.artifact-upload }}
574+ INPUT_SIGNED : ${{ matrix.sign }}
573575 with :
574576 script : |
575577 const inpIndex = core.getInput('index');
576578 const inpVerifyCommands = core.getInput('verify-commands');
577579 const inpImageDigest = core.getInput('image-digest');
578580 const inpArtifactName = core.getInput('artifact-name');
579581 const inpArtifactUpload = core.getBooleanInput('artifact-upload');
582+ const inpSigned = core.getBooleanInput('signed');
580583
581584 const result = {
582585 verifyCommands: inpVerifyCommands,
583586 imageDigest: inpImageDigest,
584- artifactName: inpArtifactUpload ? inpArtifactName : ''
587+ artifactName: inpArtifactUpload ? inpArtifactName : '',
588+ signed: inpSigned
585589 }
586590 core.info(JSON.stringify(result, null, 2));
587591
0 commit comments