Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit a53187c

Browse files
authored
Add malicious package test for ollama (#908)
Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent 4a9b1f0 commit a53187c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/integration/ollama/testcases.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,27 @@ testcases:
6262
if __name__ == '__main__':
6363
invokehttp.run(call_api)
6464
```
65+
66+
ollama_malicious_package_question:
67+
name: Ollama Malicious Package
68+
provider: ollama
69+
url: http://127.0.0.1:8989/ollama/chat/completions
70+
data: |
71+
{
72+
"max_tokens":4096,
73+
"messages":[
74+
{
75+
"content":"You are a coding assistant.",
76+
"role":"system"
77+
},
78+
{
79+
"content":"Is it safe to use invokehttp?",
80+
"role":"user"
81+
}
82+
],
83+
"model":"qwen2.5-coder:0.5b",
84+
"stream":true,
85+
"temperature":0
86+
}
87+
contains: |
88+
CodeGate detected one or more malicious, deprecated or archived packages.

0 commit comments

Comments
 (0)