Skip to content

Commit 9591c5c

Browse files
committed
bake: sign github actions cache blobs
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 92be4da commit 9591c5c

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

.github/workflows/bake.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -424,36 +424,21 @@ jobs:
424424
425425
const ghaCacheSignScriptPath = path.join(os.tmpdir(), `ghacache-sign-script.sh`);
426426
core.info(`Writing GitHub Actions cache sign script to ${ghaCacheSignScriptPath}`);
427-
await fs.writeFileSync(ghaCacheSignScriptPath, inpGHACacheSignScript);
427+
await fs.writeFileSync(ghaCacheSignScriptPath, inpGHACacheSignScript, {mode: 0o700});
428428
429429
core.info(`Copying GitHub Actions cache sign script to BuildKit container ${containerName}`);
430430
await exec.exec('docker', [
431431
'cp',
432432
ghaCacheSignScriptPath,
433433
`${containerName}:/usr/bin/ghacache-sign-script.sh`
434434
]);
435-
await exec.exec('docker', [
436-
'exec',
437-
containerName,
438-
'chmod', '+x', '/usr/bin/ghacache-sign-script.sh'
439-
]);
440-
await exec.exec('docker', [
441-
'exec',
442-
containerName,
443-
'cat', '/usr/bin/ghacache-sign-script.sh'
444-
]);
445435
446436
core.info(`Copying cosign binary to BuildKit container ${containerName}`);
447437
await exec.exec('docker', [
448438
'cp',
449439
cosignPath,
450440
`${containerName}:/usr/bin/cosign`
451441
]);
452-
await exec.exec('docker', [
453-
'exec',
454-
containerName,
455-
'chmod', '+x', '/usr/bin/cosign'
456-
]);
457442
-
458443
name: Prepare
459444
id: prepare

0 commit comments

Comments
 (0)