Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: resolve final shellcheck violations in remaining GitHub Actions workflows

LearningCircuitce0d13894187
diff --git a/.github/workflows/danger-zone-alert.yml b/.github/workflows/danger-zone-alert.yml
index c5adb16bae..d0223f68ce 100644
--- a/.github/workflows/danger-zone-alert.yml
+++ b/.github/workflows/danger-zone-alert.yml
@@ -33,15 +33,15 @@ jobs:
id: analyze
run: |
# Get list of modified files
- DANGEROUS_FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -E "(encrypted_db|sqlcipher|auth/|security/|password|encrypt|decrypt|crypto|\.secrets)" || true)
+ DANGEROUS_FILES=$(git diff --name-only "origin/${{ github.base_ref }}...HEAD" | grep -E "(encrypted_db|sqlcipher|auth/|security/|password|encrypt|decrypt|crypto|\.secrets)" || true)
if [ -z "$DANGEROUS_FILES" ]; then
echo "No dangerous files modified"
- echo "has_dangers=false" >> $GITHUB_OUTPUT
+ echo "has_dangers=false" >> "$GITHUB_OUTPUT"
exit 0
fi
- echo "has_dangers=true" >> $GITHUB_OUTPUT
+ echo "has_dangers=true" >> "$GITHUB_OUTPUT"
# Analyze each dangerous file
RISK_LEVEL="HIGH"
@@ -66,14 +66,14 @@ jobs:
fi
done
- echo "risk_level=$RISK_LEVEL" >> $GITHUB_OUTPUT
- echo "workflow_conclusion=$WORKFLOW_CONCLUSION" >> $GITHUB_OUTPUT
- echo "encryption_modified=$ENCRYPTION_MODIFIED" >> $GITHUB_OUTPUT
- echo "auth_modified=$AUTH_MODIFIED" >> $GITHUB_OUTPUT
- echo "secrets_modified=$SECRETS_MODIFIED" >> $GITHUB_OUTPUT
- echo "dangerous_files<<EOF" >> $GITHUB_OUTPUT
- echo "$DANGEROUS_FILES" >> $GITHUB_OUTPUT
- echo "EOF" >> $GITHUB_OUTPUT
+ echo "risk_level=$RISK_LEVEL" >> "$GITHUB_OUTPUT"
+ echo "workflow_conclusion=$WORKFLOW_CONCLUSION" >> "$GITHUB_OUTPUT"
+ echo "encryption_modified=$ENCRYPTION_MODIFIED" >> "$GITHUB_OUTPUT"
+ echo "auth_modified=$AUTH_MODIFIED" >> "$GITHUB_OUTPUT"
+ echo "secrets_modified=$SECRETS_MODIFIED" >> "$GITHUB_OUTPUT"
+ echo "dangerous_files<<EOF" >> "$GITHUB_OUTPUT"
+ echo "$DANGEROUS_FILES" >> "$GITHUB_OUTPUT"
+ echo "EOF" >> "$GITHUB_OUTPUT"
- name: Post danger warning comment
if: false # Disabled to reduce PR comment spam while keeping status checks and labels
diff --git a/.github/workflows/extended-ui-tests.yml b/.github/workflows/extended-ui-tests.yml
index f08f165033..1197549d56 100644
--- a/.github/workflows/extended-ui-tests.yml
+++ b/.github/workflows/extended-ui-tests.yml
@@ -61,7 +61,7 @@ jobs:
echo $! > server.pid
# Wait for server
- for i in {1..30}; do
+ for _ in {1..30}; do
if curl -f http://localhost:5000/api/v1/health 2>/dev/null; then
echo "Server ready"
break
@@ -174,5 +174,5 @@ jobs:
if: always()
run: |
if [ -f server.pid ]; then
- kill $(cat server.pid) || true
+ kill "$(cat server.pid)" || true
fi
diff --git a/.github/workflows/followup-research-tests.yml b/.github/workflows/followup-research-tests.yml
index 7c5da02fd5..9f6fed2bce 100644
--- a/.github/workflows/followup-research-tests.yml
+++ b/.github/workflows/followup-research-tests.yml
@@ -114,7 +114,7 @@ jobs:
if: always()
run: |
if [ -f server.pid ]; then
- kill $(cat server.pid) || true
+ kill "$(cat server.pid)" || true
fi
- name: Test Summary
diff --git a/.github/workflows/metrics-analytics-tests.yml b/.github/workflows/metrics-analytics-tests.yml
index 4028420b32..0a71707dff 100644
--- a/.github/workflows/metrics-analytics-tests.yml
+++ b/.github/workflows/metrics-analytics-tests.yml
@@ -66,7 +66,7 @@ jobs:
echo $! > server.pid
# Wait for server
- for i in {1..30}; do
+ for _ in {1..30}; do
if curl -f http://localhost:5000/api/v1/health 2>/dev/null; then
echo "Server ready"
break
@@ -171,5 +171,5 @@ jobs:
if: always()
run: |
if [ -f server.pid ]; then
- kill $(cat server.pid) || true
+ kill "$(cat server.pid)" || true
fi
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 06cb9bb2f0..ade2047a27 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -34,10 +34,10 @@ jobs:
- name: Determine version
id: version
run: |
- if [ "${{ github.event_name }}" == "push" ] && [[ "${{ github.ref }}" == refs/tags/* ]]; then
+ if [ "${{ github.event_name }}" = "push" ] && [[ "${{ github.ref }}" == refs/tags/* ]]; then
# Extract version from tag (remove 'v' prefix)
VERSION="${GITHUB_REF#refs/tags/v}"
- elif [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/main" ]; then
+ elif [ "${{ github.event_name }}" = "push" ] && [ "${{ github.ref }}" = "refs/heads/main" ]; then
# Get version from __version__.py for main branch pushes
VERSION=$(grep -oP '(?<=__version__ = ")[^"]*' src/local_deep_research/__version__.py)
else
@@ -96,7 +96,7 @@ jobs:
**Full Changelog**: https://github.com/LearningCircuit/local-deep-research/compare/${PREVIOUS_TAG}...${{ steps.version.outputs.tag }}
EOF
- echo "changelog_file=changelog.md" >> $GITHUB_OUTPUT
+ echo "changelog_file=changelog.md" >> "$GITHUB_OUTPUT"
- name: Create GitHub Release using gh CLI
if: steps.check_release.outputs.exists == 'false'
diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml
index 3e29128ffc..f69d5b395a 100644
--- a/.github/workflows/ui-tests.yml
+++ b/.github/workflows/ui-tests.yml
@@ -79,7 +79,7 @@ jobs:
echo "Server is ready after $i seconds"
break
fi
- if ! kill -0 $(cat server.pid) 2>/dev/null; then
+ if ! kill -0 "$(cat server.pid)" 2>/dev/null; then
echo "Server process died!"
echo "Server log:"
cat server.log
@@ -122,6 +122,6 @@ jobs:
if: always()
run: |
if [ -f server.pid ]; then
- kill $(cat server.pid) || true
+ kill "$(cat server.pid)" || true
rm server.pid
fi