Skip to content

armgit / strix

Public Imported from GitHub
0

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

ci(package): check for a missing module without a bare negation so shellcheck is happy

Ahmed Allam7ce44ef69ad9
diff --git a/.github/workflows/ci-package.yml b/.github/workflows/ci-package.yml
index 832b45d5..6673d7a0 100644
--- a/.github/workflows/ci-package.yml
+++ b/.github/workflows/ci-package.yml
@@ -70,7 +70,7 @@ jobs:
mkdir -p /tmp/target && echo 'print("hi")' > /tmp/target/app.py
STRIX_LLM=vertex_ai/gemini-2.5-pro dist/strix -n -t /tmp/target --scan-mode quick > vertex.log 2>&1 || true
grep -q "DefaultCredentialsError" vertex.log
- ! grep -q "No module named" vertex.log
+ if grep -q "No module named" vertex.log; then exit 1; fi
STRIX_LLM=bedrock/anthropic.claude-3-5-sonnet-20240620-v1:0 dist/strix -n -t /tmp/target --scan-mode quick > bedrock.log 2>&1 || true
grep -q "Unable to locate credentials" bedrock.log
- ! grep -q "No module named" bedrock.log
+ if grep -q "No module named" bedrock.log; then exit 1; fi