Skip to content

Commit 9e8b0c2

Browse files
committed
feat(update actions):
1 parent 1dbd89e commit 9e8b0c2

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

.github/workflows/security-scan.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,5 @@ jobs:
3333
- name: Run security scan
3434
id: scan
3535
run: |
36-
cat << EOF > scan.py
37-
from agentic_security import AgenticSecurity
38-
39-
spec = """
40-
POST http://0.0.0.0:8718/v1/self-probe
41-
Authorization: Bearer XXXXX
42-
Content-Type: application/json
43-
44-
{
45-
"prompt": "<<PROMPT>>"
46-
}
47-
"""
48-
49-
results = AgenticSecurity.scan(
50-
llmSpec=spec, only=["rubend18/ChatGPT-Jailbreak-Prompts"]
51-
)
52-
print(results)
53-
max_failure_rate = max(value["failure_rate"] for value in results.values())
54-
55-
# exit(max_failure_rate > 20)
56-
57-
EOF
58-
59-
python scan.py
36+
agentic_security init
37+
agentic_security ci

0 commit comments

Comments
 (0)