diff --git a/.github/workflows/code-scanning.yml b/.github/workflows/code-scanning.yml index 6680ca811c..fdd0e0ecdc 100644 --- a/.github/workflows/code-scanning.yml +++ b/.github/workflows/code-scanning.yml @@ -18,6 +18,9 @@ concurrency: group: "code-scanning-${{ github.head_ref || github.run_id }}-${{ github.event_name }}" cancel-in-progress: true +env: + TGS_DOTNET_VERSION: 6.0.x + jobs: analyze: name: Code Scanning @@ -28,6 +31,11 @@ jobs: security-events: write if: ${{ vars.TGS_ENABLE_CODE_QL }} == 'true' steps: + - name: Setup dotnet + uses: actions/setup-dotnet@v2 + with: + dotnet-version: ${{ env.TGS_DOTNET_VERSION }} + - name: Checkout uses: actions/checkout@v3