🔧 对齐Forgejo Secrets名称·GITEA_TOKEN→ZY_REPO_TOKEN·消除硬编码token
This commit is contained in:
parent
a2c7e35fb0
commit
04b3a68942
@ -72,7 +72,7 @@ jobs:
|
||||
else
|
||||
echo "启动 Terminal Watcher..."
|
||||
cd "$SCRIPTS_DIR"
|
||||
GITEA_TOKEN=3e16b79c427bb44b77c00b319aa641bde8f61d84 pm2 start watcher.js \
|
||||
ZY_REPO_TOKEN=${{ secrets.ZY_REPO_TOKEN }} pm2 start watcher.js \
|
||||
--name terminal-watcher \
|
||||
--max-memory-restart 64M
|
||||
fi
|
||||
|
||||
@ -30,7 +30,7 @@ jobs:
|
||||
env:
|
||||
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
|
||||
QIANWEN_API_KEY: ${{ secrets.QIANWEN_API_KEY }}
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
ZY_REPO_TOKEN: ${{ secrets.ZY_REPO_TOKEN }}
|
||||
run: |
|
||||
cd /opt/zhuyuan-cn/repo-mirror/20260509-1849/guanghulab/scripts/patrol-agent
|
||||
node patrol-agent.js --once
|
||||
|
||||
@ -53,7 +53,7 @@ const CONFIG = {
|
||||
// Gitea
|
||||
gitea: {
|
||||
url: process.env.GITEA_URL || "https://guanghulab.com",
|
||||
token: process.env.GITEA_TOKEN || "",
|
||||
token: process.env.ZY_REPO_TOKEN || "",
|
||||
owner: "bingshuo",
|
||||
repo: "guanghulab"
|
||||
},
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"url": "https://guanghulab.com",
|
||||
"owner": "bingshuo",
|
||||
"repo": "guanghulab",
|
||||
"token_env": "GITEA_TOKEN",
|
||||
"token_env": "ZY_REPO_TOKEN",
|
||||
"snapshot_path": ".runtime/terminal-snapshots/ZY-SVR-004"
|
||||
},
|
||||
"local": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user