fix(TLS 驗證): 套用全域憑證忽略設定
This commit is contained in:
+2
-2
@@ -1,18 +1,18 @@
|
||||
import axios from 'axios';
|
||||
import https from 'https';
|
||||
import {
|
||||
GITEA_TOKEN,
|
||||
GITEA_COMMENT_TOKEN,
|
||||
GITEA_SERVER_URL,
|
||||
GITEA_REPOSITORY,
|
||||
PR_NUMBER,
|
||||
getInsecureHttpsAgent,
|
||||
getOpenCodeHttpsAgent,
|
||||
getLLMConfig,
|
||||
} from './config.js';
|
||||
import { verifyRemoteAccess } from './git.js';
|
||||
import { step, line, ok, error, result } from './log.js';
|
||||
|
||||
const httpsAgent = new https.Agent({ rejectUnauthorized: false });
|
||||
const httpsAgent = getInsecureHttpsAgent();
|
||||
/**
|
||||
* 組出 Gitea REST API v1 的完整網址。
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user