Compare commits

..

1 Commits

Author SHA1 Message Date
jiantw83 fe2a513fbb fix: 修正 findings.json 路徑重複問題 2026-05-11 10:31:43 +00:00
+1 -1
View File
@@ -10,7 +10,7 @@ const api = (p) => `${GITEA_SERVER_URL.replace(/\/$/, '')}/api/v1${p}`;
export async function commitAndPush(workspace) {
try {
const fullPath = path.join(workspace, GITEA_REPOSITORY, FINDINGS_PATH);
const fullPath = path.join(workspace, FINDINGS_PATH);
const content = fs.readFileSync(fullPath, 'utf8');
const encoded = Buffer.from(content).toString('base64');
const url = api(`/repos/${GITEA_REPOSITORY}/contents/${FINDINGS_PATH}`);