We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d93b508 commit f281ccbCopy full SHA for f281ccb
policy/enforcer/policyenforcer.go
@@ -84,6 +84,10 @@ func (p *PolicyEnforcerViolationGenerator) WithOptions(options ...policy.PolicyH
84
}
85
86
func (p *PolicyEnforcerViolationGenerator) GenerateViolations(cmdResults *results.SecurityCommandResults) (convertedViolations violationutils.Violations, err error) {
87
+ if p.rtRepository == "" || p.artifactPath == "" {
88
+ log.Debug("Repository or artifact path not provided, skipping violation generation from Xray")
89
+ return
90
+ }
91
xrayManager, err := xray.CreateXrayServiceManager(p.serverDetails, xray.WithScopedProjectKey(p.projectKey))
92
if err != nil {
93
return
0 commit comments