~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix(ci): report gitleaks findings privately via SARIF (#5134)
LearningCircuit8aedc7ded388
diff --git a/.github/workflows/gitleaks-main.yml b/.github/workflows/gitleaks-main.ymlindex 326c684f94..d71132498c 100644--- a/.github/workflows/gitleaks-main.yml+++ b/.github/workflows/gitleaks-main.yml@@ -33,9 +33,20 @@ jobs:ref: main # Always checkout main branch- name: Install Gitleaks+ env:+ # Update this from the release checksums file when changing Gitleaks.+ GITLEAKS_SHA256: 79a3ab579b53f71efd634f3aaf7e04a0fa0cf206b7ed434638d1547a2470a66erun: |- curl -sSfL https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_linux_x64.tar.gz | tar -xz- sudo mv gitleaks /usr/local/bin/+ GITLEAKS_ARCHIVE="${RUNNER_TEMP}/gitleaks_8.30.0_linux_x64.tar.gz"+ GITLEAKS_BIN_DIR="${RUNNER_TEMP}/gitleaks-bin"+ curl -sSfL --retry 3 --retry-all-errors \+ --connect-timeout 10 --max-time 120 \+ --output "${GITLEAKS_ARCHIVE}" \+ https://github.com/gitleaks/gitleaks/releases/download/v8.30.0/gitleaks_8.30.0_linux_x64.tar.gz+ echo "${GITLEAKS_SHA256} ${GITLEAKS_ARCHIVE}" | sha256sum --check --strict+ mkdir -p "${GITLEAKS_BIN_DIR}"+ tar -xzf "${GITLEAKS_ARCHIVE}" -C "${GITLEAKS_BIN_DIR}" gitleaks+ echo "${GITLEAKS_BIN_DIR}" >> "${GITHUB_PATH}"- name: Run Gitleaks on main branch onlyrun: |@@ -45,11 +56,12 @@ jobs:--log-opts="origin/main" \--report-format=sarif \--report-path=gitleaks-results.sarif \+ --redact \--verboseid: gitleaks- name: Upload SARIF report- if: always()+ if: always() && hashFiles('gitleaks-results.sarif') != ''uses: github/codeql-action/upload-sarif@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0with:sarif_file: gitleaks-results.sarifdiff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.ymlindex 46a763194a..3b71b34f5e 100644--- a/.github/workflows/gitleaks.yml+++ b/.github/workflows/gitleaks.yml@@ -19,6 +19,7 @@ permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissionsjobs:gitleaks:runs-on: ubuntu-latest+ timeout-minutes: 30permissions:contents: readsecurity-events: write@@ -36,12 +37,46 @@ jobs:persist-credentials: falsefetch-depth: 0 # Fetch full history for comprehensive secret scanning- - name: Run Gitleaks Secret Scanner- uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3.0.0+ - name: Install Gitleaksenv:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- GITHUB_USERNAME: ${{ github.actor }}- GITHUB_REPOSITORY: ${{ github.repository }}- GITLEAKS_CONFIG: .gitleaks.toml- # False-positive suppression comes from .gitleaksignore, which the- # gitleaks CLI auto-detects at the repo root; no env var is involved.+ # Update this from the release checksums file when changing Gitleaks.+ GITLEAKS_SHA256: 79a3ab579b53f71efd634f3aaf7e04a0fa0cf206b7ed434638d1547a2470a66e+ run: |+ GITLEAKS_ARCHIVE="${RUNNER_TEMP}/gitleaks_8.30.0_linux_x64.tar.gz"+ GITLEAKS_BIN_DIR="${RUNNER_TEMP}/gitleaks-bin"+ curl -sSfL --retry 3 --retry-all-errors \+ --connect-timeout 10 --max-time 120 \+ --output "${GITLEAKS_ARCHIVE}" \+ https://github.com/gitleaks/gitleaks/releases/download/v8.30.0/gitleaks_8.30.0_linux_x64.tar.gz+ echo "${GITLEAKS_SHA256} ${GITLEAKS_ARCHIVE}" | sha256sum --check --strict+ mkdir -p "${GITLEAKS_BIN_DIR}"+ tar -xzf "${GITLEAKS_ARCHIVE}" -C "${GITLEAKS_BIN_DIR}" gitleaks+ echo "${GITLEAKS_BIN_DIR}" >> "${GITHUB_PATH}"++ - name: Run Gitleaks Secret Scanner+ id: gitleaks+ shell: bash+ run: |+ args=(detect+ --config=.gitleaks.toml+ --gitleaks-ignore-path=.gitleaksignore+ --report-format=sarif+ --report-path=gitleaks-results.sarif+ --redact+ --verbose)+ if [[ "${{ github.event_name }}" == "pull_request" ]]; then+ args+=(--log-opts="${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}")+ else+ args+=(--log-opts=--all)+ fi+ gitleaks "${args[@]}"++ # Code-scanning alerts are visible to authorized repository users under+ # Security, without advertising a possible leak in a public issue. Fork PRs+ # cannot upload because GitHub gives their token read-only permissions.+ - name: Upload redacted SARIF report+ if: always() && hashFiles('gitleaks-results.sarif') != '' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)+ uses: github/codeql-action/upload-sarif@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0+ with:+ sarif_file: gitleaks-results.sarif+ category: gitleaks