From 84df77732c5eb71c291fca76a84c5e6db4166290 Mon Sep 17 00:00:00 2001 From: Sven Merk <33895725+nevskrem@users.noreply.github.com> Date: Thu, 4 Mar 2021 09:34:05 +0100 Subject: [PATCH] fortifyExecuteScan: Pull request version not considered on upload (#2668) --- cmd/fortifyExecuteScan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)