File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
1010 outputFormat "github.com/jfrog/jfrog-cli-core/v2/common/format"
1111 "github.com/jfrog/jfrog-cli-core/v2/utils/config"
1212 "github.com/jfrog/jfrog-cli-security/policy"
13+ "github.com/jfrog/jfrog-cli-security/policy/local"
1314 "github.com/jfrog/jfrog-cli-security/utils"
1415 "github.com/jfrog/jfrog-cli-security/utils/results"
1516 "github.com/jfrog/jfrog-cli-security/utils/results/output"
@@ -163,6 +164,11 @@ func (bsc *BuildScanCommand) runBuildScanAndPrintResults(xrayManager *xray.XrayS
163164 XrayDataUrl : buildScanResults .MoreDetailsUrl ,
164165 })
165166
167+ // Enrich violations with generated violations from local policies
168+ if err = policy .EnrichWithGeneratedViolations (local .NewDeprecatedViolationGenerator (), cmdResults ); err != nil {
169+ return false , err
170+ }
171+
166172 resultsPrinter := output .NewResultsWriter (cmdResults ).
167173 SetOutputFormat (bsc .outputFormat ).
168174 SetPlatformUrl (bsc .serverDetails .Url ).
You can’t perform that action at this time.
0 commit comments