fix(ai-security-guard): 移除Suggestion=block的兜底逻辑,改为基于阈值判断 || fix(ai-security-guard): Remove the cover-up logic of Suggestion=block and change it to based on threshold judgment (#3731)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
JianweiWang
2026-04-17 14:42:22 +08:00
committed by GitHub
parent 94b40aab9a
commit 9128cbf729
5 changed files with 85 additions and 69 deletions

41
.github/workflows/sync.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: Sync Upstream
on:
schedule:
# 每天 UTC 时间 00:00 运行 (北京时间 08:00)
- cron: '0 0 * * *'
workflow_dispatch: # 允许手动触发
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0 # 获取所有历史记录,防止报错
- name: Setup Git
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Add Upstream Remote
# 将 <原始仓库URL> 替换为你要同步的原始项目地址
run: git remote add upstream https://github.com/alibaba/higress.git
- name: Fetch Upstream
run: git fetch upstream
- name: Merge Upstream Changes
# 将 upstream/main 替换为 upstream/master 或其他分支名
run: |
git checkout main
git merge upstream/main --no-edit
# 如果合并冲突,可以使用 git merge --abort 中止,或者手动处理
- name: Push to Origin
# 使用 secrets.GITHUB_TOKEN 自动推送,无需配置 PAT
run: git push origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}