mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
tighten keyword match (#2473)
This commit is contained in:
parent
88c1bb3289
commit
5c313c14db
1 changed files with 3 additions and 2 deletions
|
@ -3,11 +3,12 @@ package okta
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
regexp "github.com/wasilibs/go-re2"
|
||||
"io"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
regexp "github.com/wasilibs/go-re2"
|
||||
|
||||
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
|
||||
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
|
||||
"github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"
|
||||
|
@ -27,7 +28,7 @@ var (
|
|||
// Keywords are used for efficiently pre-filtering chunks.
|
||||
// Use identifiers in the secret preferably, or the provider name.
|
||||
func (s Scanner) Keywords() []string {
|
||||
return []string{"okta"}
|
||||
return []string{".okta"}
|
||||
}
|
||||
|
||||
// FromData will find and optionally verify Okta secrets in a given set of bytes.
|
||||
|
|
Loading…
Reference in a new issue