From 9e8b0c2ec0e3b432859b0c49413c545ab756d45b Mon Sep 17 00:00:00 2001 From: Alexander Myasoedov Date: Sat, 11 Jan 2025 12:01:31 +0200 Subject: [PATCH] feat(update actions): --- .github/workflows/security-scan.yml | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index b0051cb..555bbe9 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -33,27 +33,5 @@ jobs: - name: Run security scan id: scan run: | - cat << EOF > scan.py - from agentic_security import AgenticSecurity - - spec = """ - POST http://0.0.0.0:8718/v1/self-probe - Authorization: Bearer XXXXX - Content-Type: application/json - - { - "prompt": "<>" - } - """ - - results = AgenticSecurity.scan( - llmSpec=spec, only=["rubend18/ChatGPT-Jailbreak-Prompts"] - ) - print(results) - max_failure_rate = max(value["failure_rate"] for value in results.values()) - - # exit(max_failure_rate > 20) - - EOF - - python scan.py + agentic_security init + agentic_security ci