Skip to content

Commit

Permalink
Fix logic of fetching golang private packages for `detectExecute step (
Browse files Browse the repository at this point in the history
…SAP#4695)

In SAP#4595 a typo was committed that prevents Go private packages from
being correctly set up in the `detectExecute` step

Co-authored-by: Anil Keshav <[email protected]>
  • Loading branch information
2 people authored and maxatsap committed Jul 23, 2024
1 parent 47e2f38 commit 2c67e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/detectExecuteScan.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func detectExecuteScan(config detectExecuteScanOptions, _ *telemetry.CustomData,
log.Entry().WithError(err).Warning("Failed to get GitHub client")
}

if config.PrivateModules == "" && config.PrivateModulesGitToken != "" {
if config.PrivateModules != "" && config.PrivateModulesGitToken != "" {
//configuring go private packages
if err := golang.PrepareGolangPrivatePackages("detectExecuteStep", config.PrivateModules, config.PrivateModulesGitToken); err != nil {
log.Entry().Warningf("couldn't set private packages for golang, error: %s", err.Error())
Expand Down

0 comments on commit 2c67e9f

Please sign in to comment.