Update docker/trivy/start.sh
	
		
			
	
		
	
	
		
			
				
	
				ci/woodpecker/push/woodpecker Pipeline failed
				
					Details
				
			
		
	
				
					
				
			
				
	
				ci/woodpecker/push/woodpecker Pipeline failed
				
					Details
				
			
		
	This commit is contained in:
		
							parent
							
								
									9bcdab2de9
								
							
						
					
					
						commit
						f6751cbd21
					
				| 
						 | 
					@ -13,9 +13,9 @@ run_scan() {
 | 
				
			||||||
    for SCANNER in $SCANNERS_ENV; do
 | 
					    for SCANNER in $SCANNERS_ENV; do
 | 
				
			||||||
        CURRENT_LOG="/log/trivy_scan_${SCANNER}.log"
 | 
					        CURRENT_LOG="/log/trivy_scan_${SCANNER}.log"
 | 
				
			||||||
        if [ "$LOW_PRIORITY" = "true" ]; then
 | 
					        if [ "$LOW_PRIORITY" = "true" ]; then
 | 
				
			||||||
            nice -n 19 trivy filesystem --skip-update --cache-dir /tmp --timeout $TIMEOUT --scanners $SCANNER $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG
 | 
					            nice -n 19 trivy filesystem --skip-db-update --cache-dir /tmp --timeout $TIMEOUT --scanners $SCANNER $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
            trivy filesystem --skip-update --cache-dir /tmp --timeout $TIMEOUT --scanners $SCANNER $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG
 | 
					            trivy filesystem --skip-db-update --cache-dir /tmp --timeout $TIMEOUT --scanners $SCANNER $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
    done
 | 
					    done
 | 
				
			||||||
    IFS="$OLD_IFS"
 | 
					    IFS="$OLD_IFS"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue