@@ -93,7 +93,7 @@ func restoreInTempDirAndGetBuildInfo(params utils.AuditParams, wd string, exclus
93
93
}
94
94
95
95
log .Info ("Dependencies sources were not detected nor 'install' command provided. Running 'restore' command" )
96
- sol , err := runDotnetRestoreAndLoadSolution (params , tmpWd , exclusionPattern )
96
+ sol , err := runDotnetRestoreAndLoadSolution (params , tmpWd , exclusionPattern , params . InsecureTls () )
97
97
if err != nil {
98
98
return
99
99
}
@@ -116,7 +116,7 @@ func isInstallRequired(params utils.AuditParams, sol solution.Solution, skipAuto
116
116
return installRequired , nil
117
117
}
118
118
119
- func runDotnetRestoreAndLoadSolution (params utils.AuditParams , tmpWd , exclusionPattern string ) (sol solution.Solution , err error ) {
119
+ func runDotnetRestoreAndLoadSolution (params utils.AuditParams , tmpWd , exclusionPattern string , allowInsecureConnections bool ) (sol solution.Solution , err error ) {
120
120
toolName := params .InstallCommandName ()
121
121
if toolName == "" {
122
122
// Determine if the project is a NuGet or .NET project
@@ -148,7 +148,7 @@ func runDotnetRestoreAndLoadSolution(params utils.AuditParams, tmpWd, exclusionP
148
148
log .Info (fmt .Sprintf ("Resolving dependencies from '%s' from repo '%s'" , serverDetails .Url , depsRepo ))
149
149
150
150
var configFile * os.File
151
- configFile , err = dotnet .InitNewConfig (tmpWd , depsRepo , serverDetails , false )
151
+ configFile , err = dotnet .InitNewConfig (tmpWd , depsRepo , serverDetails , false , allowInsecureConnections )
152
152
if err != nil {
153
153
err = fmt .Errorf ("failed while attempting to generate a configuration file for setting up Artifactory as a resolution server" )
154
154
return
0 commit comments