From 06df3608de25d9cf069fe4e60bcd8bf36f229456 Mon Sep 17 00:00:00 2001 From: Piotr Fusik Date: Wed, 10 Apr 2024 13:13:39 +0200 Subject: [PATCH] Avoid a redirect to verification keys Fix #591 --- dist/index.js | 2 +- src/gpg.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 3d011b75..9a698f63 100644 --- a/dist/index.js +++ b/dist/index.js @@ -78,7 +78,7 @@ const core = __importStar(__nccwpck_require__(2186)); const toolCache = __importStar(__nccwpck_require__(7784)); async function setupKeys() { core.debug("Fetching verification keys"); - let path = await toolCache.downloadTool("https://swift.org/keys/all-keys.asc"); + let path = await toolCache.downloadTool("https://www.swift.org/keys/all-keys.asc"); core.debug("Importing verification keys"); await (0, exec_1.exec)(`gpg --import "${path}"`); core.debug("Refreshing keys"); diff --git a/src/gpg.ts b/src/gpg.ts index 8a69ad87..367833d2 100644 --- a/src/gpg.ts +++ b/src/gpg.ts @@ -5,7 +5,7 @@ import * as toolCache from "@actions/tool-cache"; export async function setupKeys() { core.debug("Fetching verification keys"); let path = await toolCache.downloadTool( - "https://swift.org/keys/all-keys.asc" + "https://www.swift.org/keys/all-keys.asc" ); core.debug("Importing verification keys");