Merge pull request #4866 from devlead/feature/gh-4865 #2444
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: [ develop, main] | |
| pull_request: | |
| branches: [ develop ] | |
| schedule: | |
| - cron: '41 21 * * 2' | |
| jobs: | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: 'csharp' | |
| build-mode: 'autobuild' | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install .NET SDK 8.0.x - 9.0.x | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| - name: Install .NET SDK (global.json) | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| global-json-file: global.json | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| - name: Autobuild | |
| uses: github/codeql-action/autobuild@v4 | |
| env: | |
| CAKE_INSTALL_SUPPORTED_SDKS: true | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 |