Skip to content

Commit

Permalink
Update pkg/scan/snyk.go
Browse files Browse the repository at this point in the history
Co-authored-by: Nils Gustav Stråbø <[email protected]>
  • Loading branch information
Richard87 and nilsgstrabo authored Apr 10, 2024
1 parent fd10d93 commit c4e5513
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pkg/scan/snyk.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,6 @@ func (s *SnykScanner) Scan(ctx context.Context, image string, dockerConfig docke
break
}
}
// credArgs, err := s.getCredentialArgs(image, auths)
// if err != nil {
// return nil, err
// }

// // If creds was not found in dockerConfig, try to get creds from auths argument
// var credsFromAuthsArg bool
// if len(credArgs) == 0 {
// credArgs, err = s.getCredentialArgs(image, dockerConfig)
// if err != nil {
// return nil, err
// }
// if len(credArgs) > 0 {
// credsFromAuthsArg = true
// }
// }

scanFn := func(ctx context.Context, args []string, buf io.Writer) error {
if err := s.executeSnykWithArgs(ctx, args, buf); err != nil && !s.isSnykScanSuccessErr(err) {
Expand Down

0 comments on commit c4e5513

Please sign in to comment.