diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a0eed52f16..95f3e13a24 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -120,7 +120,7 @@ jobs: - name: setup dotnet uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 with: - dotnet-version: 6.x + global-json-file: dotnet/global.json if: ${{ matrix.target.language == 'csharp' }} - name: build dotnet diff --git a/dotnet/global.json b/dotnet/global.json new file mode 100644 index 0000000000..ede2ba0b36 --- /dev/null +++ b/dotnet/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "allowPrerelease": false, + "version": "8.0.425" + } +}