- 
                Notifications
    You must be signed in to change notification settings 
- Fork 17
Make transformers not throw an error when receiving an empty resutls file #1068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
94c9fc4    to
    4b12f17      
    Compare
  
            
          
                components/scanners/zaproxy/internal/transformer/transformer_test.go
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | ctx := context.WithValue(ctx, component.SCANNER_TARGET_METADATA_CTX_KEY, &ocsffindinginfo.DataSource{ | ||
| TargetType: ocsffindinginfo.DataSource_TARGET_TYPE_WEBSITE, | ||
| }) | ||
| ctx, cancel := context.WithCancel(ctx) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this context should have a timeout, same goes for other contexts used in these tests
        
          
                components/scanners/codeql/internal/transformer/transformer_test.go
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                components/scanners/codeql/internal/transformer/transformer_test.go
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | @northdpole how do we test that these components will produce an empty results file if they run and they don't discover anything? or we sure that it's the binaries' behaviour? can we document that somewhere? | 
859e15a    to
    bac1f27      
    Compare
  
    | 
 
 | 
305a652    to
    f2d8429      
    Compare
  
    aa341e3    to
    1f6c82b      
    Compare
  
    1f6c82b    to
    7230277      
    Compare
  
    
No description provided.