Merge pull request #270 from cake-contrib/renovate/actions-upload-art… #234
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] | |
| pull_request: | |
| branches: [develop] | |
| schedule: | |
| - cron: '0 15 * * 6' | |
| jobs: | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: ['csharp'] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 | |
| with: | |
| dotnet-version: | | |
| 2.1 | |
| 3.1 | |
| 5.0 | |
| 6.0 | |
| 7.0 | |
| 8.0 | |
| 9.0 | |
| - name: Cache Tools | |
| uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4 | |
| with: | |
| path: tools | |
| key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }} | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| - name: Build project | |
| uses: cake-build/cake-action@5167c3f6a9e15c76f009de2acdfb9488552bc0b9 # v3 | |
| with: | |
| script-path: recipe.cake | |
| target: DotNetCore-Build | |
| cake-version: tool-manifest | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3 |