feat: AI Pull Request action — opencode 自動產生 PR 並通過 AI review #2

Open
jiantw83 wants to merge 24 commits from ai-review-resolve/develop-20260626-114117 into develop
Showing only changes of commit 4045fc0073 - Show all commits
+2 -1
View File
@@ -6,7 +6,8 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
# 安裝 opencode CLI(用於分析 git diff 產生 PR 標題與描述)
RUN npm install -g opencode-ai
# 釘住版本以確保建置可重現並降低供應鏈風險
RUN npm install -g opencode-ai@1.17.11
Ghost marked this conversation as resolved
Review

嚴重等級🟡 警告
審查員:Assassin
問題:Dockerfile 中使用全域 npm install 存在供應鏈風險。
建議:使用 lockfile(如 package-lock.json)確保依賴版本一致性,並定期審查更新。

**嚴重等級**:🟡 警告 **審查員**:Assassin **問題**:Dockerfile 中使用全域 `npm install` 存在供應鏈風險。 **建議**:使用 lockfile(如 `package-lock.json`)確保依賴版本一致性,並定期審查更新。
# 複製 Node.js 應用程式
COPY app/ /app/