Skip to content

Commit

Permalink
Fix nil scan options (trufflesecurity#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcastorina authored Feb 14, 2023
1 parent f2139a7 commit c6826c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/sources/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,11 @@ func (s *Source) scan(ctx context.Context, installationClient *github.Client, ch
reposToScan, progressIndexOffset := sources.FilterReposToResume(s.repos, s.GetProgress().EncodedResumeInfo)
s.repos = reposToScan

// Setup scan options if it wasn't provided.
if s.scanOptions == nil {
s.scanOptions = &git.ScanOptions{}
}

var scanErrs []error
for i, repoURL := range s.repos {
i, repoURL := i, repoURL
Expand Down

0 comments on commit c6826c4

Please sign in to comment.