Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

chore(security): remove legacy sync workflow and enforce lodash-es replacement for npm audit passing

diegosouzapw4b0bcf4464fb
diff --git a/.github/workflows/sync-upstream.yml b/.github/workflows/sync-upstream.yml
deleted file mode 100644
index dc9129a125..0000000000
--- a/.github/workflows/sync-upstream.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-name: Sync Upstream
-
-on:
- schedule:
- # Run every 6 hours
- - cron: '0 */6 * * *'
- workflow_dispatch:
-
-permissions:
- contents: write
-
-jobs:
- sync:
- name: Sync with upstream
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Configure Git
- run: |
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
-
- - name: Fetch upstream
- run: |
- git remote add upstream https://github.com/diegosouzapw/OmniRoute.git || true
- git fetch upstream
- git fetch origin
-
- - name: Sync main branch
- run: |
- git checkout main
- git merge upstream/main --no-edit || {
- echo "Merge conflict detected. Manual intervention required."
- exit 1
- }
-
- - name: Push changes
- run: git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/tombii/OmniRoute.git main
diff --git a/package-lock.json b/package-lock.json
index 48738e2f77..63bccbee14 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -625,13 +625,6 @@
"lodash-es": "4.17.23"
}
},
- "node_modules/@chevrotain/cst-dts-gen/node_modules/lodash-es": {
- "version": "4.17.23",
- "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.23.tgz",
- "integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==",
- "license": "MIT",
- "peer": true
- },
"node_modules/@chevrotain/gast": {
"version": "11.1.2",
"resolved": "https://registry.npmjs.org/@chevrotain/gast/-/gast-11.1.2.tgz",
@@ -643,13 +636,6 @@
"lodash-es": "4.17.23"
}
},
- "node_modules/@chevrotain/gast/node_modules/lodash-es": {
- "version": "4.17.23",
- "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.23.tgz",
- "integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==",
- "license": "MIT",
- "peer": true
- },
"node_modules/@chevrotain/regexp-to-ast": {
"version": "11.1.2",
"resolved": "https://registry.npmjs.org/@chevrotain/regexp-to-ast/-/regexp-to-ast-11.1.2.tgz",
@@ -8440,13 +8426,6 @@
"chevrotain": "^11.0.0"
}
},
- "node_modules/chevrotain/node_modules/lodash-es": {
- "version": "4.17.23",
- "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.23.tgz",
- "integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==",
- "license": "MIT",
- "peer": true
- },
"node_modules/chownr": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
diff --git a/package.json b/package.json
index 790ca29f0b..9410168c56 100644
--- a/package.json
+++ b/package.json
@@ -170,6 +170,7 @@
]
},
"overrides": {
+ "lodash-es": "^4.18.1",
"dompurify": "^3.3.2",
"path-to-regexp": "^8.4.0",
"react": "$react",