chore: update ai-review findings [ai-review-bot][failure]

This commit is contained in:
AI Review Bot
2026-05-15 15:01:06 +00:00
parent b0c4d5a0bc
commit 259d0e42c4
+4 -4
View File
@@ -21,10 +21,10 @@
"is_new": false
},
{
"level": "warning",
"level": "info",
"role": "Rex",
"location": "action.yaml:81",
"suggestion": "在 `action.yaml` 中,`GITEA_TOKEN` 的設定從 `secrets.GITEA_TOKEN` 的 fallback 移除,現在僅從 `inputs.GITEA_TOKEN` 取得。雖然 `inputs.GITEA_TOKEN` 可以透過 `secrets.MY_GITEA_TOKEN` 安全地傳遞,但此變更將確保敏感資料安全傳遞的責任完全轉移到工作流程的配置者。請確保所有使用此 action 的工作流程都透過 GitHub/Gitea secrets 將 `GITEA_TOKEN` 傳遞給 `inputs.GITEA_TOKEN`,以避免將敏感令牌硬編碼或暴露在日誌中。",
"is_new": false
"location": "action.yaml:7-9, app/gitea.js:100-104",
"suggestion": "引入 `GITEA_COMMENT_TOKEN` 並在 `postComment` 函數中優先使用它,這是一個很好的安全實踐,遵循最小權限原則。建議為此 token 配置僅限於發布評論的權限,以降低潛在洩漏的風險。",
"is_new": true
}
]