feat: AI Pull Request action — opencode 自動產生 PR 並通過 AI review #2
+2
-1
@@ -6,7 +6,8 @@ RUN apt-get update \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# 安裝 opencode CLI(用於分析 git diff 產生 PR 標題與描述)
|
# 安裝 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
|
|||||||
# 複製 Node.js 應用程式
|
# 複製 Node.js 應用程式
|
||||||
COPY app/ /app/
|
COPY app/ /app/
|
||||||
|
|||||||
Reference in New Issue
Block a user
嚴重等級:🟡 警告
審查員:Assassin
問題:Dockerfile 中使用全域
npm install存在供應鏈風險。建議:使用 lockfile(如
package-lock.json)確保依賴版本一致性,並定期審查更新。