Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debug log with multi scan id
Browse files Browse the repository at this point in the history
orz25 committed Feb 6, 2024

Verified

This commit was signed with the committer’s verified signature.
fpapon François Papon
1 parent 9f9eca9 commit c5bdf3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/xraymanager.go
Original file line number Diff line number Diff line change
@@ -46,6 +46,7 @@ func SendXscGitInfoRequestIfEnabled(graphScanParams *services.XrayGraphScanParam
return fmt.Errorf("failed sending Git Info request to XSC service, error: %s ", err.Error())
}
graphScanParams.MultiScanId = multiScanId
log.Debug(fmt.Sprintf("Created xsc git info successfully. multi_scan_id: %s", multiScanId))
if err = os.Setenv("JF_MSI", multiScanId); err != nil {
// Not a fatal error, if not set the scan will not be shown at the XSC UI, should not fail the scan.
log.Debug(fmt.Sprintf("failed setting MSI as environment variable. Cause: %s", err.Error()))

0 comments on commit c5bdf3f

Please sign in to comment.