From baf9ae6d344b86c9ee56bcc86d773e0b5955b172 Mon Sep 17 00:00:00 2001 From: Matrtex <47241511+Matrtex@users.noreply.github.com> Date: Tue, 11 Aug 2026 21:03:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=92=E9=99=A4=E9=80=86=E5=90=91?= =?UTF-8?q?=E5=88=86=E6=9E=90=E7=94=9F=E6=88=90=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/codeql/codeql-config.yml | 10 +++++++++ .github/workflows/codeql.yml | 37 ++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/codeql/codeql-config.yml create mode 100644 .github/workflows/codeql.yml diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml new file mode 100644 index 000000000..4f34bd2af --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,10 @@ +name: "排除逆向工程生成物" + +# 这些目录和文件由分析脚本从第三方混淆代码生成,仅作为研究语料保存。 +# 保留对分析脚本、重建源码和未来新增源码的 CodeQL 扫描。 +paths-ignore: + - "claude_code_v_1.0.33/stage1_analysis_workspace/chunks/**" + - "claude_code_v_1.0.33/stage1_analysis_workspace/analysis_results/**" + - "claude_code_v_1.0.33/stage1_analysis_workspace/source/**" + - "claude_code_v_1.0.33/stage1_analysis_workspace/cli.mjs" + - "claude_code_v_1.0.33/stage1_analysis_workspace/cli.beautify.mjs" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..1ea90ee7d --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,37 @@ +name: CodeQL 安全扫描 + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: "23 4 * * 1" + +permissions: + contents: read + packages: read + security-events: write + +jobs: + analyze: + name: 分析 JavaScript/TypeScript + runs-on: ubuntu-latest + timeout-minutes: 30 + + steps: + - name: 检出代码 + uses: actions/checkout@v7 + with: + persist-credentials: false + + - name: 初始化 CodeQL + uses: github/codeql-action/init@v4 + with: + languages: javascript-typescript + config-file: ./.github/codeql/codeql-config.yml + + - name: 执行 CodeQL 分析 + uses: github/codeql-action/analyze@v4