From 3c05c5a377b68ce66cc5976a4682cc27752e4f78 Mon Sep 17 00:00:00 2001 From: Florian Friedrich Date: Thu, 11 Apr 2024 08:29:16 +0200 Subject: [PATCH] Print keys --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 66d64e1..1cbf64c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -56,7 +56,7 @@ async function install(installBase: string, branchName: string, versionTag: stri if (!skipGPGCheck) { promises.push( tools.downloadTool(`${swiftURL}.sig`, swiftSig), - tools.downloadTool('https://www.swift.org/keys/all-keys.asc', allKeysFile), + tools.downloadTool('https://swift.org/keys/all-keys.asc', allKeysFile), ); } await Promise.all(promises); @@ -64,6 +64,8 @@ async function install(installBase: string, branchName: string, versionTag: stri if (!skipGPGCheck) { await core.group('Verifying files', async () => { + if (core.isDebug()) + core.debug('All Keys:\n' + await util.promisify(fs.readFile)(allKeysFile, 'utf8')); await runCmd('gpg', '--import', allKeysFile); let verifyArgs = ['--verify']; if (!core.isDebug()) verifyArgs.push('--quiet');