CodeQL #58
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: [master] | |
| schedule: | |
| - cron: '0 6 * * 1' # every Monday at 06:00 UTC | |
| permissions: | |
| contents: read | |
| security-events: write | |
| jobs: | |
| analyze: | |
| name: Analyze (${{ matrix.language }}) | |
| runs-on: windows-latest | |
| timeout-minutes: 60 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [c-cpp, python] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| queries: security-extended | |
| # C/C++ requires a traced build. build_analysis.bat (MSVC only, no CUDA) | |
| # compile-only builds the product's real C sources — GUI, CLI, updater, | |
| # payload/RC4 logic — so the scanner covers the actual application instead | |
| # of a test harness. No test utilities or sample keys are built in CI. | |
| # Python is interpreted; CodeQL scans it without a build step. | |
| - name: Build C sources for analysis | |
| if: matrix.language == 'c-cpp' | |
| shell: cmd | |
| run: | | |
| call build_analysis.bat | |
| if errorlevel 1 exit /b 1 | |
| - name: Perform CodeQL analysis | |
| uses: github/codeql-action/analyze@v3 | |
| with: | |
| category: ${{ matrix.language }} |