Skip to content

Find, verify, and analyze leaked credentials

update docs (#764)

roxanne-tampus5db6237f2a68
diff --git a/hack/docs/Adding_Detectors_Internal.md b/hack/docs/Adding_Detectors_Internal.md
index c202954e8..02d4f46e4 100644
--- a/hack/docs/Adding_Detectors_Internal.md
+++ b/hack/docs/Adding_Detectors_Internal.md
@@ -123,3 +123,7 @@ Do not embed test credentials in the test code. Instead, use GCP Secrets Manager
```bash
make protos
```
+### Testing a detector
+```bash
+ go test ./pkg/detectors/<detector> -tags=detectors
+ ```
diff --git a/hack/docs/Adding_Detectors_external.md b/hack/docs/Adding_Detectors_external.md
index 3a8ebf0a5..c1782efb8 100644
--- a/hack/docs/Adding_Detectors_external.md
+++ b/hack/docs/Adding_Detectors_external.md
@@ -100,3 +100,8 @@ Now, the detector test should attempt to load the given env key from that file.
```bash
make protos
```
+
+### Testing a detector
+```bash
+ go test ./pkg/detectors/<detector> -tags=detectors
+ ```
\ No newline at end of file