Skip to content

Commit 0015879

Browse files
committed
impl: skip signature validation
Signature validation is skipped if the user configured the `disableSignatureVerification` to true.
1 parent 9e8e007 commit 0015879

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/kotlin/com/coder/gateway/cli/CoderCLIManager.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ class CoderCLIManager(
174174
else -> result as DownloadResult.Downloaded
175175
}
176176
}
177+
if (settings.disableSignatureVerification) {
178+
downloader.commit()
179+
logger.info("Skipping over CLI signature verification, it is disabled by the user")
180+
return true
181+
}
177182

178183
var signatureResult = withContext(Dispatchers.IO) {
179184
downloader.downloadSignature(showTextProgress)

0 commit comments

Comments
 (0)