File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11FROM  alpine:3.21.3
22
33RUN  apk upgrade && \
4-   apk add nodejs npm openjdk11 -jre-headless tar zstd
4+   apk add nodejs npm openjdk21 -jre-headless tar zstd
55
66COPY  package.json /contrast-local-scanner/package.json
77RUN  cd /contrast-local-scanner && npm i --production
88
9- ENV  ACTIONS_CACHE_SERVICE_V2  true
9+ ENV  ACTIONS_CACHE_SERVICE_V2= true
1010
1111COPY  src /contrast-local-scanner/src
1212
Original file line number Diff line number Diff line change @@ -36,6 +36,14 @@ async function startCheck() {
3636} 
3737
3838function  getOutputModel ( details )  { 
39+ 
40+   if  ( ! details )  { 
41+     return  { 
42+       conclusion : "action_required" , 
43+       report : "Local scan completed with error, please see logs for details" 
44+     } ; 
45+   } 
46+ 
3947  return  { 
4048    conclusion : details . thresholdResults  >  0  ? "action_required"  : "success" , 
4149    report : buildReport ( details ) , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments