Skip to content

Commit 3d501af

Browse files
feat: import GPG keys when verify signatures
1 parent 824f867 commit 3d501af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/LinuxPlatform/Linux.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ public struct Linux: Platform {
401401
public func verifyToolchainSignature(
402402
_ ctx: SwiftlyCoreContext, toolchainFile: ToolchainFile, archive: FilePath, verbose: Bool
403403
) async throws {
404+
// Ensure GPG keys are imported before attempting signature verification
405+
try await importGpgKeys(ctx)
406+
404407
if verbose {
405408
await ctx.message("Downloading toolchain signature...")
406409
}
@@ -444,6 +447,9 @@ public struct Linux: Platform {
444447
public func verifySwiftlySignature(
445448
_ ctx: SwiftlyCoreContext, archiveDownloadURL: URL, archive: FilePath, verbose: Bool
446449
) async throws {
450+
// Ensure GPG keys are imported before attempting signature verification
451+
try await importGpgKeys(ctx)
452+
447453
if verbose {
448454
await ctx.message("Downloading swiftly signature...")
449455
}

0 commit comments

Comments
 (0)