debug: git.js 加上參數 log

This commit is contained in:
2026-05-11 10:06:22 +00:00
parent faa808bb5f
commit 121f66b0b3
+1
View File
@@ -10,6 +10,7 @@ export async function commitAndPush(workspace) {
try { try {
const fullPath = path.join(workspace, FINDINGS_PATH); const fullPath = path.join(workspace, FINDINGS_PATH);
const content = fs.readFileSync(fullPath, 'utf8'); const content = fs.readFileSync(fullPath, 'utf8');
console.log(` [debug] FINDINGS_PATH=${FINDINGS_PATH} branch=${process.env.PR_HEAD_BRANCH} token=${process.env.GITEA_TOKEN ? '***' : 'EMPTY'}`);
const result = await commitFile( const result = await commitFile(
FINDINGS_PATH, FINDINGS_PATH,
content, content,