From c4d7bcfac706b9c8374f39b1d957d6b14f146d3d Mon Sep 17 00:00:00 2001 From: HapeLee <63206378+HapeLee@users.noreply.github.com> Date: Mon, 1 Jun 2026 01:15:13 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BF=AE=E5=A4=8DCodeQL=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E5=A4=B1=E8=B4=A5=20-=20=E7=A7=BB=E9=99=A4=E9=98=BF?= =?UTF-8?q?=E9=87=8C=E4=BA=91=E9=95=9C=E5=83=8F=E5=B9=B6=E7=A6=81=E7=94=A8?= =?UTF-8?q?configuration-cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CI环境中阿里云镜像不稳定(502 Bad Gateway),构建前用sed移除 - 添加--no-configuration-cache避免序列化错误 --- .github/workflows/codeql.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1e426769a..b537e0d88 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -39,8 +39,12 @@ jobs: languages: ${{ matrix.language }} build-mode: manual + - name: Remove Aliyun mirrors (unreliable in CI) + run: | + sed -i '/maven.aliyun.com/d' settings.gradle + - name: Build with Gradle - run: ./gradlew assembleAppDebug --no-daemon -Dorg.gradle.warning.mode=none + run: ./gradlew assembleAppDebug --no-daemon --no-configuration-cache -Dorg.gradle.warning.mode=none - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3