mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Replace whole-file pipelock exclude with inline suppression (#1116)
Use `# pipelock:ignore Credential in URL` on the specific false positive line instead of excluding all of client.rb from scanning. The rest of the file is now scanned normally.
This commit is contained in:
2
app/models/assistant/external/client.rb
vendored
2
app/models/assistant/external/client.rb
vendored
@@ -20,7 +20,7 @@ class Assistant::External::Client
|
||||
|
||||
def initialize(url:, token:, agent_id: "main", session_key: "agent:main:main")
|
||||
@url = url
|
||||
@token = token
|
||||
@token = token # pipelock:ignore Credential in URL
|
||||
@agent_id = agent_id
|
||||
@session_key = session_key
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user