Skip to content

Commit cf818e0

Browse files
committed
ci:modify
1 parent 4effe73 commit cf818e0

5 files changed

Lines changed: 1 addition & 37 deletions

File tree

.github/workflows/codeql-to-commit.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,6 @@ jobs:
7474
if [ "$EXISTING" = "success" ]; then
7575
BRANCH="autofix/${SEC_LEVEL}/alert-${NUMBER}"
7676
77-
# 检查该分支是否已有 open 状态的 PR
78-
EXISTING_PR=$(gh pr list \
79-
--repo "$OWNER/$REPO" \
80-
--head "$BRANCH" \
81-
--state open \
82-
--json number \
83-
--jq '.[0].number // empty')
84-
85-
if [ -n "$EXISTING_PR" ]; then
86-
echo "⏭️ PR #$EXISTING_PR already exists for alert #$NUMBER, skipping"
87-
continue
88-
fi
89-
9077
# 检查分支是否已存在
9178
BRANCH_EXISTS=$(gh api \
9279
/repos/$OWNER/$REPO/git/refs/heads/$BRANCH \
@@ -96,7 +83,7 @@ jobs:
9683
echo "⏭️ Branch $BRANCH already exists, skipping"
9784
continue
9885
fi
99-
86+
10087
SHA=$(gh api /repos/$OWNER/$REPO/git/refs/heads/$DEFAULT_BRANCH \
10188
--jq '.object.sha')
10289

XEngine_Module/XEngine_AIApi/AIApi_Help/AIApi_Help.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ bool CAIApi_Help::AIApi_Help_Base64DecodecFile(LPCXSTR lpszMSGBuffer, int nMSGLe
215215
fwrite(ptszMSGBuffer, 1, nMSGLen, pSt_File);
216216
fclose(pSt_File);
217217

218-
SET_FILE_PERMISSION(lpszFileName);
219-
220218
free(ptszMSGBuffer);
221219
ptszMSGBuffer = NULL;
222220
return true;

XEngine_Module/XEngine_AIApi/pch.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <stdio.h>
1616
#include <stdlib.h>
1717
#include <string.h>
18-
#include <sys/stat.h>
1918
#include <json/json.h>
2019
#include <thread>
2120
#include <memory>
@@ -50,15 +49,6 @@
5049
extern bool AIApi_IsErrorOccur;
5150
extern XLONG AIApi_dwErrorCode;
5251

53-
#ifdef _MSC_BUILD
54-
#include <io.h>
55-
#define SET_FILE_PERMISSION(path) _chmod(path, _S_IREAD | _S_IWRITE)
56-
#else
57-
#include <unistd.h>
58-
// 0644: owner rw, group r, other r
59-
#define SET_FILE_PERMISSION(path) chmod(path, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
60-
#endif
61-
6252
#ifdef _MSC_BUILD
6353
#pragma comment(lib,"XEngine_BaseLib/XEngine_BaseLib")
6454
#pragma comment(lib,"XEngine_BaseLib/XEngine_BaseSafe")

XEngine_Module/XEngine_Verification/Verification_XAuth/Verification_XAuthKey.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ bool CVerification_XAuthKey::Verification_XAuthKey_FileWrite(VERIFICATION_XAUTHK
176176
fwrite(tszENCodecBuffer, 1, nSize, pSt_File);
177177
}
178178
fclose(pSt_File);
179-
SET_FILE_PERMISSION(lpszKeyFile);
180179

181180
return true;
182181
}

XEngine_Module/XEngine_Verification/pch.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <string.h>
2222
#include <errno.h>
2323
#include <fcntl.h>
24-
#include <sys/stat.h>
2524
#include <json/json.h>
2625
#include <shared_mutex>
2726
#include <thread>
@@ -63,15 +62,6 @@
6362
extern bool Verification_IsErrorOccur;
6463
extern XLONG Verification_dwErrorCode;
6564

66-
#ifdef _MSC_BUILD
67-
#include <io.h>
68-
#define SET_FILE_PERMISSION(path) _chmod(path, _S_IREAD | _S_IWRITE)
69-
#else
70-
#include <unistd.h>
71-
// 0644: owner rw, group r, other r
72-
#define SET_FILE_PERMISSION(path) chmod(path, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
73-
#endif
74-
7565
#ifdef _MSC_BUILD
7666
#pragma comment(lib,"XEngine_BaseLib/XEngine_BaseLib")
7767
#pragma comment(lib,"XEngine_BaseLib/XEngine_BaseSafe")

0 commit comments

Comments
 (0)