Skip to content

Commit

Permalink
Fix working dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 committed Aug 7, 2023
1 parent 6f53a16 commit 015d64b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/scanpullrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ func auditPullRequest(repoConfig *utils.Repository, client vcsclient.VcsClient,
// Download target branch (if needed)
targetBranchWd := ""
cleanupTarget := func() error { return nil }
if repoConfig.IncludeAllVulnerabilities {
log.Info("Frogbot is configured to show all vulnerabilities")
if !repoConfig.IncludeAllVulnerabilities {
targetBranchInfo := pullRequestDetails.Target
targetBranchWd, cleanupTarget, err = utils.DownloadRepoToTempDir(client, targetBranchInfo.Owner, targetBranchInfo.Repository, targetBranchInfo.Name)
if err != nil {
Expand Down Expand Up @@ -139,6 +138,7 @@ func auditPullRequest(repoConfig *utils.Repository, client vcsclient.VcsClient,

// Get all issues that were found in the source branch
if repoConfig.IncludeAllVulnerabilities {
log.Info("Frogbot is configured to show all vulnerabilities")
var allIssuesRows []formats.VulnerabilityOrViolationRow
allIssuesRows, err = getScanVulnerabilitiesRows(sourceResults)
if err != nil {
Expand Down

0 comments on commit 015d64b

Please sign in to comment.