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.
This commit is contained in:
Guillem Arias
2026-05-29 14:52:38 +02:00
parent e7d4a00f73
commit e3fe4100bb

View File

@@ -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