diff --git a/go.mod b/go.mod index 915abcfd3..57b42b313 100644 --- a/go.mod +++ b/go.mod @@ -39,6 +39,7 @@ require ( github.com/go-sql-driver/mysql v1.7.1 github.com/gobwas/glob v0.2.3 github.com/golang-jwt/jwt v3.2.2+incompatible + github.com/golang-jwt/jwt/v4 v4.5.0 github.com/google/go-cmp v0.6.0 github.com/google/go-containerregistry v0.17.0 github.com/google/go-github/v42 v42.0.0 @@ -166,7 +167,6 @@ require ( github.com/go-ole/go-ole v1.2.6 // indirect github.com/goccy/go-json v0.10.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect - github.com/golang-jwt/jwt/v4 v4.5.0 // indirect github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe // indirect github.com/golang-sql/sqlexp v0.1.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect diff --git a/pkg/detectors/azuresearchquerykey/azuresearchquerykey.go b/pkg/detectors/azuresearchquerykey/azuresearchquerykey.go index 27e21951f..dbb7a3962 100644 --- a/pkg/detectors/azuresearchquerykey/azuresearchquerykey.go +++ b/pkg/detectors/azuresearchquerykey/azuresearchquerykey.go @@ -52,7 +52,8 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result s1 := detectors.Result{ DetectorType: detectorspb.DetectorType_AzureSearchQueryKey, - Raw: []byte(resMatch + resUrlMatch), + Raw: []byte(resMatch), + RawV2: []byte(resMatch + resUrlMatch), } if verify { client := s.client diff --git a/pkg/detectors/badlist.txt b/pkg/detectors/badlist.txt index 274a32cea..713871d7e 100644 --- a/pkg/detectors/badlist.txt +++ b/pkg/detectors/badlist.txt @@ -4,12 +4,7 @@ array uint boolean config -/> -