diff --git a/cmd/fortifyExecuteScan.go b/cmd/fortifyExecuteScan.go index c44392e94..e401f51b3 100644 --- a/cmd/fortifyExecuteScan.go +++ b/cmd/fortifyExecuteScan.go @@ -147,7 +147,7 @@ func runFortifyScan(config fortifyExecuteScanOptions, sys fortify.System, utils if len(config.PullRequestName) > 0 { fortifyProjectVersion = config.PullRequestName - projectVersion, err := sys.LookupOrCreateProjectVersionDetailsForPullRequest(project.ID, projectVersion, fortifyProjectVersion) + projectVersion, err = sys.LookupOrCreateProjectVersionDetailsForPullRequest(project.ID, projectVersion, fortifyProjectVersion) if err != nil { classifyErrorOnLookup(err) return reports, fmt.Errorf("Failed to lookup / create project version for pull request %v: %w", fortifyProjectVersion, err)