SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[mod] ci: exclude some workflows from forks (#4849)
Ivan Gabaldon14b8a999f392
diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.ymlindex 85e22ce9d..d6af8feee 100644--- a/.github/workflows/cleanup.yml+++ b/.github/workflows/cleanup.yml@@ -16,6 +16,8 @@ permissions:jobs:container-cache:+ # FIXME: On forks it fails with "Failed to fetch packages: missing field `id` at line 1 column 141"+ if: github.repository_owner == 'searxng' || github.event_name == 'workflow_dispatch'name: Container cacheruns-on: ubuntu-24.04permissions:diff --git a/.github/workflows/container.yml b/.github/workflows/container.ymlindex ccdba770e..0285bcd5c 100644--- a/.github/workflows/container.yml+++ b/.github/workflows/container.yml@@ -36,16 +36,19 @@ jobs:packages: writesteps:- - name: Checkout+ - if: github.repository_owner == 'searxng'+ name: Checkoutuses: actions/checkout@v4with:persist-credentials: "false"- - name: Get date+ - if: github.repository_owner == 'searxng'+ name: Get dateid: daterun: echo "date=$(date +'%Y%m%d')" >>$GITHUB_OUTPUT- - name: Check cache apko+ - if: github.repository_owner == 'searxng'+ name: Check cache apkoid: cache-apkouses: actions/cache/restore@v4with:@@ -54,7 +57,7 @@ jobs:path: "/tmp/.apko/"lookup-only: true- - if: steps.cache-apko.outputs.cache-hit != 'true'+ - if: github.repository_owner == 'searxng' && steps.cache-apko.outputs.cache-hit != 'true'name: Setup cache apkouses: actions/cache@v4with:@@ -63,13 +66,13 @@ jobs:restore-keys: "apko-${{ steps.date.outputs.date }}-"path: "/tmp/.apko/"- - if: steps.cache-apko.outputs.cache-hit != 'true'+ - if: github.repository_owner == 'searxng' && steps.cache-apko.outputs.cache-hit != 'true'name: Setup apkorun: |eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"brew install apko- - if: steps.cache-apko.outputs.cache-hit != 'true'+ - if: github.repository_owner == 'searxng' && steps.cache-apko.outputs.cache-hit != 'true'name: Login to GHCRuses: docker/login-action@v3with:@@ -77,7 +80,7 @@ jobs:username: "${{ github.repository_owner }}"password: "${{ secrets.GITHUB_TOKEN }}"- - if: steps.cache-apko.outputs.cache-hit != 'true'+ - if: github.repository_owner == 'searxng' && steps.cache-apko.outputs.cache-hit != 'true'name: Buildrun: |eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"diff --git a/.github/workflows/security.yml b/.github/workflows/security.ymlindex e994306b8..73a5fd77f 100644--- a/.github/workflows/security.yml+++ b/.github/workflows/security.yml@@ -16,6 +16,7 @@ permissions:jobs:container:+ if: github.repository_owner == 'searxng'name: Containerruns-on: ubuntu-24.04-armpermissions:@@ -30,7 +31,7 @@ jobs:- name: Run Trivy scanneruses: aquasecurity/[email protected]with:- image-ref: "docker.io/searxng/searxng:latest"+ image-ref: "ghcr.io/searxng/searxng:latest"vuln-type: "os,library"severity: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL"ignore-unfixed: "false"