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 zizmor security scanning alerts in CI workflows (#2093)

LearningCircuitf543175984fd
diff --git a/.github/workflows/gitleaks-main.yml b/.github/workflows/gitleaks-main.yml
index e6dfcf1baf..a15b347df1 100644
--- a/.github/workflows/gitleaks-main.yml
+++ b/.github/workflows/gitleaks-main.yml
@@ -49,6 +49,6 @@ jobs:
- name: Upload SARIF report
if: always()
- uses: github/codeql-action/upload-sarif@v4
+ uses: github/codeql-action/upload-sarif@45cbd0c69e560cd9e7cd7f8c32362050c9b7ded2 # v4
with:
sarif_file: gitleaks-results.sarif
diff --git a/.github/workflows/puppeteer-e2e-tests.yml b/.github/workflows/puppeteer-e2e-tests.yml
index e2e56aba9b..8fd883a8d4 100644
--- a/.github/workflows/puppeteer-e2e-tests.yml
+++ b/.github/workflows/puppeteer-e2e-tests.yml
@@ -4,6 +4,11 @@ on:
pull_request:
types: [labeled]
workflow_call: # Called by security-release-gate.yml
+ secrets:
+ OPENROUTER_API_KEY:
+ required: false
+ SERPER_API_KEY:
+ required: false
workflow_dispatch: # Manual trigger runs all tests
schedule:
# Run weekly on Sunday at 2 AM UTC
@@ -36,7 +41,7 @@ jobs:
persist-credentials: false
- name: Setup Python
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.11'
cache: 'pip'
@@ -218,13 +223,13 @@ jobs:
{
echo "## 🧪 Puppeteer E2E Test Results"
echo ""
- if [ "${{ env.TEST_EXIT_CODE }}" == "0" ]; then
+ if [ "$TEST_EXIT_CODE" == "0" ]; then
echo "### ✅ Tests Passed!"
else
echo "### ❌ Tests Failed"
fi
echo ""
- echo "**Summary:** ${{ env.TESTS_PASSING }}, ${{ env.TESTS_FAILING }}"
+ echo "**Summary:** $TESTS_PASSING, $TESTS_FAILING"
echo ""
# Include key test results
@@ -270,12 +275,16 @@ jobs:
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ EVENT_NAME: ${{ github.event_name }}
+ PR_NUM: ${{ github.event.pull_request.number }}
+ REF_NAME: ${{ github.ref_name }}
+ REPO: ${{ github.repository }}
run: |
- if [ "${{ github.event_name }}" == "pull_request" ]; then
- echo "pr_number=${{ github.event.pull_request.number }}" >> "$GITHUB_OUTPUT"
+ if [ "$EVENT_NAME" == "pull_request" ]; then
+ echo "pr_number=$PR_NUM" >> "$GITHUB_OUTPUT"
else
# For workflow_dispatch/schedule, find PR from branch
- PR_NUMBER=$(gh pr list --head "${{ github.ref_name }}" --repo "${{ github.repository }}" --json number --jq '.[0].number // empty')
+ PR_NUMBER=$(gh pr list --head "$REF_NAME" --repo "$REPO" --json number --jq '.[0].number // empty')
echo "pr_number=${PR_NUMBER}" >> "$GITHUB_OUTPUT"
fi
@@ -283,17 +292,20 @@ jobs:
if: always() && steps.find-pr.outputs.pr_number != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ PR_NUMBER: ${{ steps.find-pr.outputs.pr_number }}
+ REPO: ${{ github.repository }}
+ EVENT_NAME: ${{ github.event_name }}
run: |
{
echo "## 🧪 Puppeteer E2E Test Results"
echo ""
- if [ "${{ env.TEST_EXIT_CODE }}" == "0" ]; then
+ if [ "$TEST_EXIT_CODE" == "0" ]; then
echo "### ✅ Tests Passed!"
else
echo "### ❌ Tests Failed"
fi
echo ""
- echo "**Summary:** ${{ env.TESTS_PASSING }}, ${{ env.TESTS_FAILING }}"
+ echo "**Summary:** $TESTS_PASSING, $TESTS_FAILING"
echo ""
# Include key test results
@@ -349,17 +361,18 @@ jobs:
echo "- Search: \`serper\`"
echo "- Test suite: \`all\`"
echo ""
- echo "_Triggered by: \`${{ github.event_name }}\` (label: \`${LABEL_NAME}\`)_"
+ echo "_Triggered by: \`${EVENT_NAME}\` (label: \`${LABEL_NAME}\`)_"
} > comment.md
- gh pr comment "${{ steps.find-pr.outputs.pr_number }}" --repo "${{ github.repository }}" -F comment.md
+ gh pr comment "$PR_NUMBER" --repo "$REPO" -F comment.md
- name: Remove label for re-triggering
if: always() && github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ PR_NUM: ${{ github.event.pull_request.number }}
run: |
- gh issue edit ${{ github.event.pull_request.number }} --remove-label "$LABEL_NAME" 2>/dev/null || true
+ gh issue edit "$PR_NUM" --remove-label "$LABEL_NAME" 2>/dev/null || true
- name: Cleanup
if: always()
diff --git a/.github/workflows/security-release-gate.yml b/.github/workflows/security-release-gate.yml
index 317cfb7755..0baef59cb2 100644
--- a/.github/workflows/security-release-gate.yml
+++ b/.github/workflows/security-release-gate.yml
@@ -176,7 +176,9 @@ jobs:
contents: read
pull-requests: write
issues: write
- secrets: inherit
+ secrets:
+ OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
+ SERPER_API_KEY: ${{ secrets.SERPER_API_KEY }}
# ============================================
# Summary job that reports overall status