Skip to content

Commit

Permalink
add multi match support
Browse files Browse the repository at this point in the history
  • Loading branch information
noboruma committed Jul 10, 2024
1 parent 426f305 commit fa167d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func removeFirstLastChar(input string) string {

func SecretToSecretInfo(out output.IOCFound, matchIndex int) *pb.SecretInfo {
signature := ""
if len(out.StringsToMatch) != 0 {
if len(out.Meta) != 0 {
signature = out.Meta[0]
}
severity := "low"
Expand Down
2 changes: 1 addition & 1 deletion server/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (s *SecretGRPCServer) FindSecretInfo(c context.Context, r *pb.FindRequest)
container,
yaraScanner,
func(res out.IOCFound, scanID string) {
for i := range res.StringsToMatch {
for i := range res.Matches {
jobs.WriteSingleScanData(output.SecretToSecretInfo(res, i), scanID)
}
},
Expand Down

0 comments on commit fa167d5

Please sign in to comment.