Skip to content

Commit

Permalink
Print keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Apr 11, 2024
1 parent 781d9c6 commit 3c05c5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,16 @@ 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);
});

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');
Expand Down

0 comments on commit 3c05c5a

Please sign in to comment.