forcing offline mode if offline path is provided
@@ -165,6 +165,11 @@ class DetectConfiguration {
}
}
+ //when an offline path is provided, force offline mode
+ if (hubSignatureScannerOfflineLocalPath) {
+ hubOfflineMode = true
+ }
+
if (gradleInspectorVersion.equals("latest") && gradleBomTool.isBomToolApplicable()) {
gradleInspectorVersion = gradleBomTool.getInspectorVersion()
logger.info("Resolved gradle inspector version from latest to: ${gradleInspectorVersion}")
@@ -179,8 +184,6 @@ class DetectConfiguration {
}
}
-
-
/**
* If the default source path is being used AND docker is configured, don't run unless the tool is docker
*/
