From e3fe4100bbd40e391e8c3a258efea575e02258fb Mon Sep 17 00:00:00 2001 From: Guillem Arias Date: Fri, 29 May 2026 14:52:38 +0200 Subject: [PATCH] fix(ci): replace sk-ant- prefixed token in hostings controller test Same pipelock secret-scan trigger as PR1 fix on registry/anthropic tests. The sk-ant-* prefix is matched verbatim by the scanner regardless of value entropy. --- test/controllers/settings/hostings_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/controllers/settings/hostings_controller_test.rb b/test/controllers/settings/hostings_controller_test.rb index 9ad32cc4a..094a6e486 100644 --- a/test/controllers/settings/hostings_controller_test.rb +++ b/test/controllers/settings/hostings_controller_test.rb @@ -76,9 +76,9 @@ class Settings::HostingsControllerTest < ActionDispatch::IntegrationTest test "can update anthropic access token when self hosting is enabled" do with_self_hosting do - patch settings_hosting_url, params: { setting: { anthropic_access_token: "sk-ant-test" } } + patch settings_hosting_url, params: { setting: { anthropic_access_token: "fake-anthropic-key-for-tests" } } - assert_equal "sk-ant-test", Setting.anthropic_access_token + assert_equal "fake-anthropic-key-for-tests", Setting.anthropic_access_token end end