@@ -745,7 +745,7 @@ func (s *Git) ScanCommits(ctx context.Context, repo *git.Repository, path string
745745 SourceType : s .sourceType ,
746746 SourceMetadata : metadata ,
747747 Data : []byte (sb .String ()),
748- Verify : s .verify ,
748+ SourceVerify : s .verify ,
749749 }
750750 if err := reporter .ChunkOk (ctx , chunk ); err != nil {
751751 return err
@@ -779,7 +779,7 @@ func (s *Git) ScanCommits(ctx context.Context, repo *git.Repository, path string
779779 JobID : s .jobID ,
780780 SourceType : s .sourceType ,
781781 SourceMetadata : metadata ,
782- Verify : s .verify ,
782+ SourceVerify : s .verify ,
783783 }
784784
785785 if err := HandleBinary (ctx , gitDir , reporter , chunkSkel , commitHash , fileName , s .skipArchives ); err != nil {
@@ -828,7 +828,7 @@ func (s *Git) ScanCommits(ctx context.Context, repo *git.Repository, path string
828828 SourceType : s .sourceType ,
829829 SourceMetadata : metadata ,
830830 Data : data ,
831- Verify : s .verify ,
831+ SourceVerify : s .verify ,
832832 }
833833 return reporter .ChunkOk (ctx , chunk )
834834 }
@@ -866,7 +866,7 @@ func (s *Git) gitChunk(ctx context.Context, diff *gitparse.Diff, fileName, email
866866 SourceType : s .sourceType ,
867867 SourceMetadata : metadata ,
868868 Data : append ([]byte {}, newChunkBuffer .Bytes ()... ),
869- Verify : s .verify ,
869+ SourceVerify : s .verify ,
870870 }
871871 if err := reporter .ChunkOk (ctx , chunk ); err != nil {
872872 // TODO: Return error.
@@ -886,7 +886,7 @@ func (s *Git) gitChunk(ctx context.Context, diff *gitparse.Diff, fileName, email
886886 SourceType : s .sourceType ,
887887 SourceMetadata : metadata ,
888888 Data : line ,
889- Verify : s .verify ,
889+ SourceVerify : s .verify ,
890890 }
891891 if err := reporter .ChunkOk (ctx , chunk ); err != nil {
892892 // TODO: Return error.
@@ -910,7 +910,7 @@ func (s *Git) gitChunk(ctx context.Context, diff *gitparse.Diff, fileName, email
910910 SourceType : s .sourceType ,
911911 SourceMetadata : metadata ,
912912 Data : append ([]byte {}, newChunkBuffer .Bytes ()... ),
913- Verify : s .verify ,
913+ SourceVerify : s .verify ,
914914 }
915915 if err := reporter .ChunkOk (ctx , chunk ); err != nil {
916916 // TODO: Return error.
@@ -1010,7 +1010,7 @@ func (s *Git) ScanStaged(ctx context.Context, repo *git.Repository, path string,
10101010 JobID : s .jobID ,
10111011 SourceType : s .sourceType ,
10121012 SourceMetadata : metadata ,
1013- Verify : s .verify ,
1013+ SourceVerify : s .verify ,
10141014 }
10151015 if err := HandleBinary (ctx , gitDir , reporter , chunkSkel , commitHash , fileName , s .skipArchives ); err != nil {
10161016 logger .Error (err , "error handling binary file" )
@@ -1040,7 +1040,7 @@ func (s *Git) ScanStaged(ctx context.Context, repo *git.Repository, path string,
10401040 SourceType : s .sourceType ,
10411041 SourceMetadata : metadata ,
10421042 Data : data ,
1043- Verify : s .verify ,
1043+ SourceVerify : s .verify ,
10441044 }
10451045 return reporter .ChunkOk (ctx , chunk )
10461046 }
0 commit comments