Skip to content

Find, verify, and analyze leaked credentials

adding pypi v1 support (#3289)

dylanTruffle029f03e7bd5e
diff --git a/pkg/detectors/pypi/pypi.go b/pkg/detectors/pypi/pypi.go
index 140984963..00376cf84 100644
--- a/pkg/detectors/pypi/pypi.go
+++ b/pkg/detectors/pypi/pypi.go
@@ -25,7 +25,7 @@ var _ detectors.Detector = (*Scanner)(nil)
var (
defaultClient = common.SaneHttpClient()
// Make sure that your group is surrounded in boundary characters such as below to reduce false positives.
- keyPat = regexp.MustCompile("(pypi-AgEIcHlwaS5vcmcCJ[a-zA-Z0-9-_]{157})")
+ keyPat = regexp.MustCompile("(pypi-AgEIcHlwaS5vcmcCJ[a-zA-Z0-9-_]{150,157})")
)
// Keywords are used for efficiently pre-filtering chunks.