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 shellcheck SC2129 warning in security gate workflow

LearningCircuitd132a92b98b0
diff --git a/.github/workflows/security-release-gate.yml b/.github/workflows/security-release-gate.yml
index 195c7bfe34..5698f4db56 100644
--- a/.github/workflows/security-release-gate.yml
+++ b/.github/workflows/security-release-gate.yml
@@ -208,175 +208,178 @@ jobs:
- name: Check security scan results
run: |
- echo "## Security Release Gate Results" >> "$GITHUB_STEP_SUMMARY"
- echo "" >> "$GITHUB_STEP_SUMMARY"
+ # Redirect all output to GITHUB_STEP_SUMMARY (fixes SC2129)
+ exec >> "$GITHUB_STEP_SUMMARY"
+
+ echo "## Security Release Gate Results"
+ echo ""
FAILED=""
# ============================================
# Existing scans
# ============================================
- echo "### Core Security Scans" >> "$GITHUB_STEP_SUMMARY"
+ echo "### Core Security Scans"
if [ "${{ needs.security-tests.result }}" = "success" ]; then
- echo "✅ **Security Tests**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **Security Tests**: Passed"
else
- echo "❌ **Security Tests**: ${{ needs.security-tests.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **Security Tests**: ${{ needs.security-tests.result }}"
FAILED="true"
fi
if [ "${{ needs.semgrep-scan.result }}" = "success" ]; then
- echo "✅ **Semgrep Scan**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **Semgrep Scan**: Passed"
else
- echo "❌ **Semgrep Scan**: ${{ needs.semgrep-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **Semgrep Scan**: ${{ needs.semgrep-scan.result }}"
FAILED="true"
fi
if [ "${{ needs.container-security.result }}" = "success" ]; then
- echo "✅ **Container Security**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **Container Security**: Passed"
else
- echo "❌ **Container Security**: ${{ needs.container-security.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **Container Security**: ${{ needs.container-security.result }}"
FAILED="true"
fi
if [ "${{ needs.owasp-zap-scan.result }}" = "success" ]; then
- echo "✅ **OWASP ZAP Scan**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **OWASP ZAP Scan**: Passed"
else
- echo "❌ **OWASP ZAP Scan**: ${{ needs.owasp-zap-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **OWASP ZAP Scan**: ${{ needs.owasp-zap-scan.result }}"
FAILED="true"
fi
# ============================================
# SAST and code analysis
# ============================================
- echo "" >> "$GITHUB_STEP_SUMMARY"
- echo "### SAST & Code Analysis" >> "$GITHUB_STEP_SUMMARY"
+ echo ""
+ echo "### SAST & Code Analysis"
if [ "${{ needs.codeql-scan.result }}" = "success" ]; then
- echo "✅ **CodeQL**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **CodeQL**: Passed"
else
- echo "❌ **CodeQL**: ${{ needs.codeql-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **CodeQL**: ${{ needs.codeql-scan.result }}"
FAILED="true"
fi
if [ "${{ needs.devskim-scan.result }}" = "success" ]; then
- echo "✅ **DevSkim**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **DevSkim**: Passed"
else
- echo "❌ **DevSkim**: ${{ needs.devskim-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **DevSkim**: ${{ needs.devskim-scan.result }}"
FAILED="true"
fi
if [ "${{ needs.bearer-scan.result }}" = "success" ]; then
- echo "✅ **Bearer**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **Bearer**: Passed"
else
- echo "❌ **Bearer**: ${{ needs.bearer-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **Bearer**: ${{ needs.bearer-scan.result }}"
FAILED="true"
fi
if [ "${{ needs.ossar-scan.result }}" = "success" ]; then
- echo "✅ **OSSAR**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **OSSAR**: Passed"
else
- echo "❌ **OSSAR**: ${{ needs.ossar-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **OSSAR**: ${{ needs.ossar-scan.result }}"
FAILED="true"
fi
# ============================================
# Dependency scanning
# ============================================
- echo "" >> "$GITHUB_STEP_SUMMARY"
- echo "### Dependency Vulnerability Scanning" >> "$GITHUB_STEP_SUMMARY"
- echo "ℹ️ **OSV-Scanner**: Runs on PRs (excluded from gate due to workflow nesting limits)" >> "$GITHUB_STEP_SUMMARY"
+ echo ""
+ echo "### Dependency Vulnerability Scanning"
+ echo "ℹ️ **OSV-Scanner**: Runs on PRs (excluded from gate due to workflow nesting limits)"
if [ "${{ needs.npm-audit.result }}" = "success" ]; then
- echo "✅ **npm Audit**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **npm Audit**: Passed"
else
- echo "❌ **npm Audit**: ${{ needs.npm-audit.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **npm Audit**: ${{ needs.npm-audit.result }}"
FAILED="true"
fi
if [ "${{ needs.retirejs-scan.result }}" = "success" ]; then
- echo "✅ **Retire.js**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **Retire.js**: Passed"
else
- echo "❌ **Retire.js**: ${{ needs.retirejs-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **Retire.js**: ${{ needs.retirejs-scan.result }}"
FAILED="true"
fi
# ============================================
# Container and IaC security
# ============================================
- echo "" >> "$GITHUB_STEP_SUMMARY"
- echo "### Container & IaC Security" >> "$GITHUB_STEP_SUMMARY"
+ echo ""
+ echo "### Container & IaC Security"
if [ "${{ needs.dockle-scan.result }}" = "success" ]; then
- echo "✅ **Dockle**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **Dockle**: Passed"
else
- echo "❌ **Dockle**: ${{ needs.dockle-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **Dockle**: ${{ needs.dockle-scan.result }}"
FAILED="true"
fi
if [ "${{ needs.hadolint-scan.result }}" = "success" ]; then
- echo "✅ **Hadolint**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **Hadolint**: Passed"
else
- echo "❌ **Hadolint**: ${{ needs.hadolint-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **Hadolint**: ${{ needs.hadolint-scan.result }}"
FAILED="true"
fi
if [ "${{ needs.checkov-scan.result }}" = "success" ]; then
- echo "✅ **Checkov**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **Checkov**: Passed"
else
- echo "❌ **Checkov**: ${{ needs.checkov-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **Checkov**: ${{ needs.checkov-scan.result }}"
FAILED="true"
fi
# ============================================
# Workflow security
# ============================================
- echo "" >> "$GITHUB_STEP_SUMMARY"
- echo "### Workflow Security" >> "$GITHUB_STEP_SUMMARY"
+ echo ""
+ echo "### Workflow Security"
if [ "${{ needs.zizmor-scan.result }}" = "success" ]; then
- echo "✅ **Zizmor**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **Zizmor**: Passed"
else
- echo "❌ **Zizmor**: ${{ needs.zizmor-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **Zizmor**: ${{ needs.zizmor-scan.result }}"
FAILED="true"
fi
# ============================================
# Secret detection
# ============================================
- echo "" >> "$GITHUB_STEP_SUMMARY"
- echo "### Secret Detection" >> "$GITHUB_STEP_SUMMARY"
+ echo ""
+ echo "### Secret Detection"
if [ "${{ needs.gitleaks-scan.result }}" = "success" ]; then
- echo "✅ **Gitleaks**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **Gitleaks**: Passed"
else
- echo "❌ **Gitleaks**: ${{ needs.gitleaks-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **Gitleaks**: ${{ needs.gitleaks-scan.result }}"
FAILED="true"
fi
# ============================================
# Runtime security validation
# ============================================
- echo "" >> "$GITHUB_STEP_SUMMARY"
- echo "### Runtime Security Validation" >> "$GITHUB_STEP_SUMMARY"
+ echo ""
+ echo "### Runtime Security Validation"
if [ "${{ needs.security-headers-scan.result }}" = "success" ]; then
- echo "✅ **Security Headers**: Passed" >> "$GITHUB_STEP_SUMMARY"
+ echo "✅ **Security Headers**: Passed"
else
- echo "❌ **Security Headers**: ${{ needs.security-headers-scan.result }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "❌ **Security Headers**: ${{ needs.security-headers-scan.result }}"
FAILED="true"
fi
# ============================================
# Final result
# ============================================
- echo "" >> "$GITHUB_STEP_SUMMARY"
+ echo ""
if [ -n "$FAILED" ]; then
- echo "---" >> "$GITHUB_STEP_SUMMARY"
- echo "❌ **Security gate failed** - Release blocked until issues are resolved." >> "$GITHUB_STEP_SUMMARY"
+ echo "---"
+ echo "❌ **Security gate failed** - Release blocked until issues are resolved."
exit 1
else
- echo "---" >> "$GITHUB_STEP_SUMMARY"
- echo "✅ **All security scans passed** - Release approved from security perspective." >> "$GITHUB_STEP_SUMMARY"
+ echo "---"
+ echo "✅ **All security scans passed** - Release approved from security perspective."
fi