From a3060ec1445a5fd80fbf03d1861a1e4e05806998 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Sun, 29 Jun 2025 22:50:16 -0700 Subject: [PATCH] Added test to prevent this and similar issues --- data/rules/sourcegraph.yml | 2 +- tests/smoke_github_homebrew.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/data/rules/sourcegraph.yml b/data/rules/sourcegraph.yml index 72fd8b1..1523c75 100644 --- a/data/rules/sourcegraph.yml +++ b/data/rules/sourcegraph.yml @@ -44,7 +44,7 @@ rules: min_entropy: 3.5 confidence: medium examples: - - sgp_abcdef1234567890_local_abcdef12345678901234567890abcdef12345678 + - sourcegraph SECRET sgp_abcdef1234567890_local_0123456789abcdef0123456789abcdef01234567 validation: type: Http content: diff --git a/tests/smoke_github_homebrew.rs b/tests/smoke_github_homebrew.rs index 710795a..6e401af 100644 --- a/tests/smoke_github_homebrew.rs +++ b/tests/smoke_github_homebrew.rs @@ -1,4 +1,3 @@ -use assert_cmd::prelude::*; use assert_cmd::Command; use predicates::str::contains;