mirror of
https://github.com/we-promise/sure.git
synced 2026-05-30 15:59:02 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user