diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index fb792ac..ecb06a0 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,10 +1,10 @@ name: "CodeQL" on: - push: - branches: [ master ] - pull_request: - branches: [ master ] + push: + branches: [ master ] + pull_request: + branches: [ master ] schedule: - cron: '30 1 * * 1' @@ -23,12 +23,20 @@ jobs: language: [ 'csharp' ] steps: - - name: Checkout repository - uses: actions/checkout@v7 - with: - fetch-depth: 0 - - - name: Initialize CodeQL + - name: Checkout repository + uses: actions/checkout@v7 + with: + fetch-depth: 0 + + - name: Setup .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: | + 8.0.x + 9.0.x + 10.0.x + + - name: Initialize CodeQL uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }}