ci(release): 修复 Windows native 与镜像扫描 #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CodeQL | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| schedule: | |
| - cron: "24 3 * * 1" | |
| permissions: | |
| contents: read | |
| security-events: write | |
| concurrency: | |
| group: codeql-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| analyze: | |
| name: Analyze ${{ matrix.language }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: | |
| - javascript-typescript | |
| - python | |
| - java-kotlin | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| - name: Autobuild | |
| if: ${{ matrix.language != 'java-kotlin' }} | |
| uses: github/codeql-action/autobuild@v4 | |
| - name: Set up JDK for Android analysis | |
| if: ${{ matrix.language == 'java-kotlin' }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| - name: Set up Gradle for Android analysis | |
| if: ${{ matrix.language == 'java-kotlin' }} | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| gradle-home-cache-cleanup: true | |
| - name: Build Android app for CodeQL | |
| if: ${{ matrix.language == 'java-kotlin' }} | |
| working-directory: android | |
| run: | | |
| chmod +x gradlew | |
| ./gradlew :app:assembleDebug -PTASKBRIDGE_USE_CHINA_MIRRORS=false --stacktrace | |
| - name: Analyze | |
| uses: github/codeql-action/analyze@v4 |