File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 run : |
4747 latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
4848 wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_24.04_${{ matrix.artifact }}.zip
49- unzip ./XEngine_UBuntu_24_ ${{ matrix.artifact }}.zip -d ./XEngine_UBuntu_24_ ${{ matrix.artifact }}
50- cd XEngine_UBuntu_24_ ${{ matrix.artifact }}
49+ unzip ./XEngine_UBuntu_24.04_ ${{ matrix.artifact }}.zip -d ./XEngine_UBuntu_24.04_ ${{ matrix.artifact }}
50+ cd XEngine_UBuntu_24.04_ ${{ matrix.artifact }}
5151
5252 chmod 777 *
5353 ./XEngine_LINEnv.sh -i 3
Original file line number Diff line number Diff line change 1+ name : Auto Issue from CodeQL
2+
3+ on :
4+ code_scanning_alert :
5+ types : [created]
6+
7+ jobs :
8+ create_issue :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ issues : write
12+ steps :
13+ - name : Create GitHub Issue
14+ uses : actions/github-script@v9
15+ with :
16+ script : |
17+ const alert = context.payload.alert;
18+
19+ // 组装 Issue 的标题和内容
20+ const issueTitle = `[安全扫描] ${alert.rule.description}`;
21+ const issueBody = `
22+ ### 🚨 CodeQL 发现新的安全警告
23+
24+ **问题类型:** ${alert.rule.name}
25+ **严重程度:** ${alert.rule.security_severity_level || alert.rule.severity}
26+ **文件路径:** \`${alert.most_recent_instance.location.path}\`
27+ **代码行数:** 第 ${alert.most_recent_instance.location.start_line} 行
28+
29+ [👉 点击此处查看详细报告与修复建议](${alert.html_url})
30+ `;
31+
32+ // 调用 GitHub API 创建 Issue
33+ await github.rest.issues.create({
34+ owner: context.repo.owner,
35+ repo: context.repo.repo,
36+ title: issueTitle,
37+ body: issueBody,
38+ labels: ['security', 'bug', 'codeql']
39+ });
You can’t perform that action at this time.
0 commit comments