Skip to content

Find, verify, and analyze leaked credentials

add filetype=sdist param so we get the correct response code (#4988)

lukem-ts36d680a074f3
diff --git a/pkg/detectors/pypi/pypi.go b/pkg/detectors/pypi/pypi.go
index e2746a9c0..cfdc470d8 100644
--- a/pkg/detectors/pypi/pypi.go
+++ b/pkg/detectors/pypi/pypi.go
@@ -77,6 +77,7 @@ func verifyMatch(ctx context.Context, client *http.Client, token string) (bool,
_ = writer.WriteField(":action", "file_upload")
_ = writer.WriteField("name", "dummy-package")
_ = writer.WriteField("version", "0.0.1")
+ _ = writer.WriteField("filetype", "sdist")
_ = writer.WriteField("content", "dummy-content")
// Close the writer to finalize the form