You've already forked sap-jenkins-library
							
							
				mirror of
				https://github.com/SAP/jenkins-library.git
				synced 2025-10-30 23:57:50 +02:00 
			
		
		
		
	chore(detect): add error category for policy violations (#2125)
* chore(detect): add error category for policy violations * Update detectExecuteScan.go Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							1e0e230be8
						
					
				
				
					commit
					6aa3e514e1
				
			| @@ -17,7 +17,13 @@ import ( | ||||
| ) | ||||
|  | ||||
| func detectExecuteScan(config detectExecuteScanOptions, telemetryData *telemetry.CustomData) { | ||||
| 	c := command.Command{} | ||||
| 	c := command.Command{ | ||||
| 		ErrorCategoryMapping: map[string][]string{ | ||||
| 			log.ErrorCompliance.String(): { | ||||
| 				"FAILURE_POLICY_VIOLATION - Detect found policy violations.", | ||||
| 			}, | ||||
| 		}, | ||||
| 	} | ||||
| 	// reroute command output to logging framework | ||||
| 	c.Stdout(log.Writer()) | ||||
| 	c.Stderr(log.Writer()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user