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 remaining shellcheck violations in GitHub Actions workflows

LearningCircuit93b5eaa2f240
diff --git a/.github/workflows/file-whitelist-check.yml b/.github/workflows/file-whitelist-check.yml
index 01e88d9967..ee84a534f0 100644
--- a/.github/workflows/file-whitelist-check.yml
+++ b/.github/workflows/file-whitelist-check.yml
@@ -366,7 +366,7 @@ jobs:
echo " → File extension: .$FILE_EXT"
echo " → File type: $FILE_TYPE"
echo " → First few lines:"
- head -3 "$violation" 2>/dev/null | while read line; do
+ head -3 "$violation" 2>/dev/null | while read -r line; do
echo " $line"
done
fi
@@ -416,7 +416,7 @@ jobs:
# Show the specific lines that triggered the detection
echo " → Suspicious content found:"
- grep -n -iE "(api[_-]?key|secret|password|token|private[_-]?key)" "$violation" 2>/dev/null | head -5 | while read line; do
+ grep -n -iE "(api[_-]?key|secret|password|token|private[_-]?key)" "$violation" 2>/dev/null | head -5 | while read -r line; do
echo " $line"
done
@@ -461,7 +461,7 @@ jobs:
FILE_SIZE=$(stat -c%s "$violation" 2>/dev/null || echo "unknown")
echo " → File info: $FILE_TYPE (${FILE_SIZE} bytes)"
echo " → Content preview:"
- head -3 "$violation" 2>/dev/null | while read line; do
+ head -3 "$violation" 2>/dev/null | while read -r line; do
echo " $line"
done
fi
@@ -484,7 +484,7 @@ jobs:
# Show the specific lines with research data
echo " → Found hardcoded research data:"
- grep -n -E "(research_id|session_id|query_id).*=.*[\"'][0-9a-f]{8,}[\"']" "$violation" 2>/dev/null | head -3 | while read line; do
+ grep -n -E "(research_id|session_id|query_id).*=.*[\"'][0-9a-f]{8,}[\"']" "$violation" 2>/dev/null | head -3 | while read -r line; do
echo " $line"
done
@@ -505,7 +505,7 @@ jobs:
# Show the specific lines with secret keys
echo " → Found hardcoded Flask secret key:"
- grep -n -E "SECRET_KEY.*=.*[\"'][^\"']{16,}[\"']" "$violation" 2>/dev/null | head -3 | while read line; do
+ grep -n -E "SECRET_KEY.*=.*[\"'][^\"']{16,}[\"']" "$violation" 2>/dev/null | head -3 | while read -r line; do
echo " $line"
done
@@ -540,7 +540,7 @@ jobs:
# Show sample of high entropy strings
echo " → Found high-entropy strings:"
- grep -n -E "[a-zA-Z0-9+/]{40,}={0,2}|[a-f0-9]{40,}" "$violation" 2>/dev/null | head -3 | while read line; do
+ grep -n -E "[a-zA-Z0-9+/]{40,}={0,2}|[a-f0-9]{40,}" "$violation" 2>/dev/null | head -3 | while read -r line; do
# Truncate long lines for readability
echo " ${line:0:120}..."
done
@@ -562,7 +562,7 @@ jobs:
# Show the specific hardcoded paths
echo " → Found hardcoded paths:"
- grep -n -E "(/home/[a-zA-Z0-9_-]+|/Users/[a-zA-Z0-9_-]+|C:\\\\Users\\\\[a-zA-Z0-9_-]+|/opt/|/var/|/etc/|/usr/local/)" "$violation" 2>/dev/null | head -5 | while read line; do
+ grep -n -E "(/home/[a-zA-Z0-9_-]+|/Users/[a-zA-Z0-9_-]+|C:\\\\Users\\\\[a-zA-Z0-9_-]+|/opt/|/var/|/etc/|/usr/local/)" "$violation" 2>/dev/null | head -5 | while read -r line; do
echo " $line"
done
@@ -583,7 +583,7 @@ jobs:
# Show the specific IP addresses
echo " → Found hardcoded IP addresses:"
- grep -n -E "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" "$violation" 2>/dev/null | grep -v -E "(127\.0\.0\.1|0\.0\.0\.0|localhost|192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|255\.255\.255\.|192\.0\.2\.|198\.51\.100\.|203\.0\.113\.)" | head -5 | while read line; do
+ grep -n -E "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" "$violation" 2>/dev/null | grep -v -E "(127\.0\.0\.1|0\.0\.0\.0|localhost|192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|255\.255\.255\.|192\.0\.2\.|198\.51\.100\.|203\.0\.113\.)" | head -5 | while read -r line; do
echo " $line"
done
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 6e41b12b0c..2eba669b58 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -24,10 +24,10 @@ jobs:
id: check
run: |
if [ -f "package.json" ]; then
- echo "has-frontend=true" >> $GITHUB_OUTPUT
+ echo "has-frontend=true" >> "$GITHUB_OUTPUT"
echo "Found package.json - will build frontend"
else
- echo "has-frontend=false" >> $GITHUB_OUTPUT
+ echo "has-frontend=false" >> "$GITHUB_OUTPUT"
echo "ERROR: No package.json found - frontend build is required for PyPI releases"
exit 1
fi
@@ -316,12 +316,12 @@ jobs:
fi
echo "✅ Found wheel file: $WHEEL_FILE"
- echo "Wheel size: $(du -h $WHEEL_FILE | cut -f1)"
+ echo "Wheel size: $(du -h "$WHEEL_FILE" | cut -f1)"
echo ""
if [ -n "$TAR_FILE" ]; then
echo "✅ Found source distribution: $TAR_FILE"
- echo "Source dist size: $(du -h $TAR_FILE | cut -f1)"
+ echo "Source dist size: $(du -h "$TAR_FILE" | cut -f1)"
fi
echo ""
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 57cc268fa5..3d6647ec6e 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -34,28 +34,28 @@ 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
+ VERSION="${GITHUB_REF#refs/tags/v}"
+ 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
# Use manual input
VERSION="${{ github.event.inputs.version }}"
fi
- echo "version=$VERSION" >> $GITHUB_OUTPUT
- echo "tag=v$VERSION" >> $GITHUB_OUTPUT
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
+ echo "tag=v$VERSION" >> "$GITHUB_OUTPUT"
- name: Check if release already exists
id: check_release
run: |
if gh release view "${{ steps.version.outputs.tag }}" >/dev/null 2>&1; then
echo "Release ${{ steps.version.outputs.tag }} already exists, skipping..."
- echo "exists=true" >> $GITHUB_OUTPUT
+ echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "Release ${{ steps.version.outputs.tag }} does not exist, proceeding..."
- echo "exists=false" >> $GITHUB_OUTPUT
+ echo "exists=false" >> "$GITHUB_OUTPUT"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -84,7 +84,7 @@ jobs:
COMMITS=$(git log --pretty=format:"- %s (%h)" --no-merges)
else
echo "Generating changelog since $PREVIOUS_TAG"
- COMMITS=$(git log ${PREVIOUS_TAG}..HEAD --pretty=format:"- %s (%h)" --no-merges)
+ COMMITS=$(git log "${PREVIOUS_TAG}..HEAD" --pretty=format:"- %s (%h)" --no-merges)
fi
# Create changelog content