Skip to content

Commit 5fcb4b9

Browse files
committed
fix: don't run signature verification
When there is no signature and the user allowed running of unsigned binaries without prompt
1 parent 6a79995 commit 5fcb4b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ class CoderCLIManager(
189189
if (signatureResult.isNotDownloaded()) {
190190
if (context.settingsStore.allowUnsignedBinaryWithoutPrompt) {
191191
context.logger.warn("Running unsigned CLI from ${cliResult.source}")
192+
return true
192193
} else {
193194
val acceptsUnsignedBinary = context.ui.showYesNoPopup(
194195
context.i18n.ptrl("Security Warning"),
@@ -242,7 +243,6 @@ class CoderCLIManager(
242243
throw exception
243244
}
244245
}
245-
246246
}
247247
}
248248

0 commit comments

Comments
 (0)