From cc582c8cc5903db4beef8e6f57a0f8237073600a Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkebo@users.noreply.github.com> Date: Mon, 1 Dec 2025 23:20:30 +0900 Subject: [PATCH] Fix CI This change fixes `gpg: Can't check signature: No public key`. --- src/swiftly/installers/linux.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/swiftly/installers/linux.ts b/src/swiftly/installers/linux.ts index 8e88eea9..c5e0ee45 100644 --- a/src/swiftly/installers/linux.ts +++ b/src/swiftly/installers/linux.ts @@ -1,8 +1,8 @@ import { machine } from "os"; import { addPath, debug, info } from "@actions/core"; import { downloadTool, find, extractTar, cacheDir } from "@actions/tool-cache"; -import { verify } from "../../core/gpg"; -import { cmd } from "../../core"; +import { setupKeys, verify } from "../../core/gpg"; +import { cmd, getOS } from "../../core"; interface Options { /** Skip signature verification */ @@ -44,6 +44,8 @@ async function download({ skipVerifySignature = false }: Options = {}) { if (skipVerifySignature) { info("Skipping signature verification"); } else { + const os = await getOS(); + await setupKeys(os); await verify(signature, pkg); }