From f9701126cacc7370ec2054ab5ae9501f4e9b5fc3 Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Mon, 15 Jun 2026 10:58:14 +0800 Subject: [PATCH 1/4] commit 1 --- lib/linguist/languages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 92b013df81..1c09848401 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -3573,6 +3573,7 @@ JSON: - ".c8rc" - ".htmlhintrc" - ".imgbotconfig" + - ".secrets.baseline" - ".nycrc" - ".tern-config" - ".tern-project" From c9c038e2065123ba60428b0bb25ae23a87cbe370 Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Mon, 15 Jun 2026 11:02:46 +0800 Subject: [PATCH 2/4] commit 2 --- lib/linguist/generated.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/linguist/generated.rb b/lib/linguist/generated.rb index 0e7263e129..aa705c88d7 100644 --- a/lib/linguist/generated.rb +++ b/lib/linguist/generated.rb @@ -93,6 +93,7 @@ def generated? gradle_wrapper? || maven_wrapper? || mise_lock? || + secrets_baseline? || julia_manifest? || generated_go? || generated_protocol_buffer_from_go? || @@ -591,6 +592,13 @@ def mise_lock? !!name.match(/(?:^|\/)mise(?:\.[^\/]+)?\.lock$/) end + # Internal: Is the blob a detect-secrets baseline file? + # + # Returns true or false. + def secrets_baseline? + !!name.match(/uv\.lock/) + end + # Internal: Is the blob a Julia Manifest.toml file? # # Returns true or false. From 7905e4e5db8127ac4ae1d5cf32d351a6519ba70b Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Mon, 15 Jun 2026 11:26:41 +0800 Subject: [PATCH 3/4] Update lib/linguist/generated.rb Co-authored-by: John Gardner --- lib/linguist/generated.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/generated.rb b/lib/linguist/generated.rb index aa705c88d7..08c1e1b0bc 100644 --- a/lib/linguist/generated.rb +++ b/lib/linguist/generated.rb @@ -596,7 +596,7 @@ def mise_lock? # # Returns true or false. def secrets_baseline? - !!name.match(/uv\.lock/) + !!name.match(/(?:^|\/)\.secrets\.baseline$/) end # Internal: Is the blob a Julia Manifest.toml file? From 1413823949a8b7c30fb0456daa1f8f7d0c84d64f Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Mon, 15 Jun 2026 11:26:54 +0800 Subject: [PATCH 4/4] Update lib/linguist/languages.yml Co-authored-by: John Gardner --- lib/linguist/languages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 1c09848401..317c864ad5 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -3573,8 +3573,8 @@ JSON: - ".c8rc" - ".htmlhintrc" - ".imgbotconfig" - - ".secrets.baseline" - ".nycrc" + - ".secrets.baseline" - ".tern-config" - ".tern-project" - ".watchmanconfig"