feat(OpenCode TLS): 新增自簽憑證驗證略過設定

This commit is contained in:
2026-06-20 13:15:44 +00:00
parent c7e63c9468
commit f7e4f09d4e
4 changed files with 28 additions and 5 deletions
+4
View File
@@ -11,6 +11,10 @@ export const PR_BASE_BRANCH = process.env.PR_BASE_BRANCH || '';
export const FINDINGS_PATH = '.gitea/ai-review/findings.json';
export const EXCLUSIONS_PATH = '.gitea/ai-review/exclusions.json';
export function shouldSkipOpenCodeTLSVerify() {
return process.env.OPENCODE_SKIP_TLS_VERIFY === 'true';
}
/** 將逗號分隔的 API key 字串拆成陣列 */
function splitKeys(value) {
if (!value) return [];