diff --git a/.github/workflows/__all-platform-bundle.yml b/.github/workflows/__all-platform-bundle.yml index 89138c523c..e2b5e69fc4 100644 --- a/.github/workflows/__all-platform-bundle.yml +++ b/.github/workflows/__all-platform-bundle.yml @@ -27,6 +27,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -34,6 +39,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -74,6 +84,10 @@ jobs: with: go-version: ${{ inputs.go-version || '>=1.21.0' }} cache: false + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - id: init uses: ./../action/init with: diff --git a/.github/workflows/__analyze-ref-input.yml b/.github/workflows/__analyze-ref-input.yml index 9cf85b0c59..9efe4a8c32 100644 --- a/.github/workflows/__analyze-ref-input.yml +++ b/.github/workflows/__analyze-ref-input.yml @@ -32,6 +32,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -44,6 +49,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -85,6 +95,10 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ inputs.python-version || '3.13' }} + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init with: tools: ${{ steps.prepare-test.outputs.tools-url }} diff --git a/.github/workflows/__autobuild-action.yml b/.github/workflows/__autobuild-action.yml index c315763391..0e617afe1c 100644 --- a/.github/workflows/__autobuild-action.yml +++ b/.github/workflows/__autobuild-action.yml @@ -21,9 +21,19 @@ on: schedule: - cron: '0 5 * * *' workflow_dispatch: - inputs: {} + inputs: + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: - inputs: {} + inputs: + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -59,6 +69,10 @@ jobs: version: ${{ matrix.version }} use-all-platform-bundle: 'false' setup-kotlin: 'true' + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init with: languages: csharp diff --git a/.github/workflows/__build-mode-manual.yml b/.github/workflows/__build-mode-manual.yml index e0dc25f889..4be0c42d15 100644 --- a/.github/workflows/__build-mode-manual.yml +++ b/.github/workflows/__build-mode-manual.yml @@ -27,6 +27,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -34,6 +39,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -70,6 +80,10 @@ jobs: with: go-version: ${{ inputs.go-version || '>=1.21.0' }} cache: false + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init id: init with: diff --git a/.github/workflows/__export-file-baseline-information.yml b/.github/workflows/__export-file-baseline-information.yml index 66274f26b6..980535c84d 100644 --- a/.github/workflows/__export-file-baseline-information.yml +++ b/.github/workflows/__export-file-baseline-information.yml @@ -27,6 +27,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -34,6 +39,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -74,6 +84,10 @@ jobs: with: go-version: ${{ inputs.go-version || '>=1.21.0' }} cache: false + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init id: init with: diff --git a/.github/workflows/__go-custom-queries.yml b/.github/workflows/__go-custom-queries.yml index 1b5b7b9150..fe35b5b4d8 100644 --- a/.github/workflows/__go-custom-queries.yml +++ b/.github/workflows/__go-custom-queries.yml @@ -27,6 +27,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -34,6 +39,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -72,6 +82,10 @@ jobs: with: go-version: ${{ inputs.go-version || '>=1.21.0' }} cache: false + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init with: languages: go diff --git a/.github/workflows/__go.yml b/.github/workflows/__go.yml index e8bf8837e4..fb27da710a 100644 --- a/.github/workflows/__go.yml +++ b/.github/workflows/__go.yml @@ -18,6 +18,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x jobs: go-custom-queries: name: 'Go: Custom queries' @@ -27,6 +32,7 @@ jobs: uses: ./.github/workflows/__go-custom-queries.yml with: go-version: ${{ inputs.go-version }} + dotnet-version: ${{ inputs.dotnet-version }} go-indirect-tracing-workaround-diagnostic: name: 'Go: diagnostic when Go is changed after init step' permissions: diff --git a/.github/workflows/__local-bundle.yml b/.github/workflows/__local-bundle.yml index 159d8c4556..3fc89f381a 100644 --- a/.github/workflows/__local-bundle.yml +++ b/.github/workflows/__local-bundle.yml @@ -32,6 +32,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -44,6 +49,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -85,6 +95,10 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ inputs.python-version || '3.13' }} + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - name: Fetch latest CodeQL bundle run: | wget https://github.com/github/codeql-action/releases/latest/download/codeql-bundle-linux64.tar.zst diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index e9272f8939..3704cdbf51 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -32,6 +32,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -44,6 +49,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -119,6 +129,10 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ inputs.python-version || '3.13' }} + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - name: Use Xcode 16 if: runner.os == 'macOS' && matrix.version != 'nightly-latest' run: sudo xcode-select -s "/Applications/Xcode_16.app" diff --git a/.github/workflows/__packaging-codescanning-config-inputs-js.yml b/.github/workflows/__packaging-codescanning-config-inputs-js.yml index a5038cefc4..53f280ab96 100644 --- a/.github/workflows/__packaging-codescanning-config-inputs-js.yml +++ b/.github/workflows/__packaging-codescanning-config-inputs-js.yml @@ -32,6 +32,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -44,6 +49,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -96,6 +106,10 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ inputs.python-version || '3.13' }} + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init with: config-file: .github/codeql/codeql-config-packaging3.yml diff --git a/.github/workflows/__packaging-config-inputs-js.yml b/.github/workflows/__packaging-config-inputs-js.yml index 9c8483c746..2b483b41a3 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -27,6 +27,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -34,6 +39,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -81,6 +91,10 @@ jobs: with: go-version: ${{ inputs.go-version || '>=1.21.0' }} cache: false + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init with: config-file: .github/codeql/codeql-config-packaging3.yml diff --git a/.github/workflows/__packaging-config-js.yml b/.github/workflows/__packaging-config-js.yml index b7608793a5..d45ca3b369 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -27,6 +27,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -34,6 +39,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -81,6 +91,10 @@ jobs: with: go-version: ${{ inputs.go-version || '>=1.21.0' }} cache: false + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init with: config-file: .github/codeql/codeql-config-packaging.yml diff --git a/.github/workflows/__packaging-inputs-js.yml b/.github/workflows/__packaging-inputs-js.yml index 0a814a0502..41ca571b8c 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -27,6 +27,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -34,6 +39,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -81,6 +91,10 @@ jobs: with: go-version: ${{ inputs.go-version || '>=1.21.0' }} cache: false + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init with: config-file: .github/codeql/codeql-config-packaging2.yml diff --git a/.github/workflows/__remote-config.yml b/.github/workflows/__remote-config.yml index b59da417e4..20a308e748 100644 --- a/.github/workflows/__remote-config.yml +++ b/.github/workflows/__remote-config.yml @@ -32,6 +32,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -44,6 +49,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -87,6 +97,10 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ inputs.python-version || '3.13' }} + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init with: tools: ${{ steps.prepare-test.outputs.tools-url }} diff --git a/.github/workflows/__split-workflow.yml b/.github/workflows/__split-workflow.yml index e916b36ccc..3ffb099286 100644 --- a/.github/workflows/__split-workflow.yml +++ b/.github/workflows/__split-workflow.yml @@ -27,6 +27,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -34,6 +39,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -80,6 +90,10 @@ jobs: with: go-version: ${{ inputs.go-version || '>=1.21.0' }} cache: false + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init with: config-file: .github/codeql/codeql-config-packaging3.yml diff --git a/.github/workflows/__swift-custom-build.yml b/.github/workflows/__swift-custom-build.yml index 32ce33a7f0..a1c5a556ff 100644 --- a/.github/workflows/__swift-custom-build.yml +++ b/.github/workflows/__swift-custom-build.yml @@ -27,6 +27,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -34,6 +39,11 @@ on: description: The version of Go to install required: false default: '>=1.21.0' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -74,6 +84,10 @@ jobs: with: go-version: ${{ inputs.go-version || '>=1.21.0' }} cache: false + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - name: Use Xcode 16 if: runner.os == 'macOS' && matrix.version != 'nightly-latest' run: sudo xcode-select -s "/Applications/Xcode_16.app" diff --git a/.github/workflows/__unset-environment.yml b/.github/workflows/__unset-environment.yml index ced3b33fcc..c1a62b1108 100644 --- a/.github/workflows/__unset-environment.yml +++ b/.github/workflows/__unset-environment.yml @@ -32,6 +32,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -44,6 +49,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -87,6 +97,10 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ inputs.python-version || '3.13' }} + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init id: init with: diff --git a/.github/workflows/__upload-ref-sha-input.yml b/.github/workflows/__upload-ref-sha-input.yml index 8f1fd49173..1c2c5975d1 100644 --- a/.github/workflows/__upload-ref-sha-input.yml +++ b/.github/workflows/__upload-ref-sha-input.yml @@ -32,6 +32,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -44,6 +49,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -85,6 +95,10 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ inputs.python-version || '3.13' }} + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init with: tools: ${{ steps.prepare-test.outputs.tools-url }} diff --git a/.github/workflows/__upload-sarif.yml b/.github/workflows/__upload-sarif.yml index 77cd057f9c..361c8228fc 100644 --- a/.github/workflows/__upload-sarif.yml +++ b/.github/workflows/__upload-sarif.yml @@ -32,6 +32,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -44,6 +49,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -92,6 +102,10 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ inputs.python-version || '3.13' }} + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - uses: ./../action/init with: tools: ${{ steps.prepare-test.outputs.tools-url }} diff --git a/.github/workflows/__with-checkout-path.yml b/.github/workflows/__with-checkout-path.yml index 1b4002ffbc..5aa2b631c2 100644 --- a/.github/workflows/__with-checkout-path.yml +++ b/.github/workflows/__with-checkout-path.yml @@ -32,6 +32,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x workflow_call: inputs: go-version: @@ -44,6 +49,11 @@ on: description: The version of Python to install required: false default: '3.13' + dotnet-version: + type: string + description: The version of .NET to install + required: false + default: 9.x defaults: run: shell: bash @@ -85,6 +95,10 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ inputs.python-version || '3.13' }} + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: ${{ inputs.dotnet-version || '9.x' }} - name: Delete original checkout run: | # delete the original checkout so we don't accidentally use it. diff --git a/.github/workflows/debug-artifacts-failure-safe.yml b/.github/workflows/debug-artifacts-failure-safe.yml index 1a09b3d9ee..768f88f965 100644 --- a/.github/workflows/debug-artifacts-failure-safe.yml +++ b/.github/workflows/debug-artifacts-failure-safe.yml @@ -54,6 +54,10 @@ jobs: - uses: actions/setup-go@v6 with: go-version: ^1.13.1 + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: '9.x' - uses: ./../action/init with: tools: ${{ steps.prepare-test.outputs.tools-url }} diff --git a/.github/workflows/debug-artifacts-safe.yml b/.github/workflows/debug-artifacts-safe.yml index ea513521f1..e33d70cc3a 100644 --- a/.github/workflows/debug-artifacts-safe.yml +++ b/.github/workflows/debug-artifacts-safe.yml @@ -50,6 +50,10 @@ jobs: - uses: actions/setup-go@v6 with: go-version: ^1.13.1 + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: '9.x' - uses: ./../action/init id: init with: diff --git a/.github/workflows/test-codeql-bundle-all.yml b/.github/workflows/test-codeql-bundle-all.yml index 4b7fdca817..6465d6a1d8 100644 --- a/.github/workflows/test-codeql-bundle-all.yml +++ b/.github/workflows/test-codeql-bundle-all.yml @@ -43,6 +43,10 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: true + - name: Install .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: '9.x' - id: init uses: ./../action/init with: diff --git a/pr-checks/checks/all-platform-bundle.yml b/pr-checks/checks/all-platform-bundle.yml index 3396be22a7..994c91eb97 100644 --- a/pr-checks/checks/all-platform-bundle.yml +++ b/pr-checks/checks/all-platform-bundle.yml @@ -4,6 +4,7 @@ operatingSystems: ["ubuntu", "macos", "windows"] versions: ["nightly-latest"] useAllPlatformBundle: "true" installGo: true +installDotNet: true steps: - id: init uses: ./../action/init diff --git a/pr-checks/checks/analyze-ref-input.yml b/pr-checks/checks/analyze-ref-input.yml index 1dbf9e0c86..e9d2cd1764 100644 --- a/pr-checks/checks/analyze-ref-input.yml +++ b/pr-checks/checks/analyze-ref-input.yml @@ -3,6 +3,7 @@ description: "Checks that specifying 'ref' and 'sha' as inputs works" versions: ["default"] installGo: true installPython: true +installDotNet: true steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/autobuild-action.yml b/pr-checks/checks/autobuild-action.yml index 91ae7834cc..b91489cc8c 100644 --- a/pr-checks/checks/autobuild-action.yml +++ b/pr-checks/checks/autobuild-action.yml @@ -2,6 +2,7 @@ name: "autobuild-action" description: "Tests that the C# autobuild action works" operatingSystems: ["ubuntu", "macos", "windows"] versions: ["linked"] +installDotNet: true steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/build-mode-manual.yml b/pr-checks/checks/build-mode-manual.yml index f1815b7ff0..a8048230c8 100644 --- a/pr-checks/checks/build-mode-manual.yml +++ b/pr-checks/checks/build-mode-manual.yml @@ -2,6 +2,7 @@ name: "Build mode manual" description: "An end-to-end integration test of a Java repository built using 'build-mode: manual'" versions: ["nightly-latest"] installGo: true +installDotNet: true steps: - uses: ./../action/init id: init diff --git a/pr-checks/checks/export-file-baseline-information.yml b/pr-checks/checks/export-file-baseline-information.yml index 1a316d6ec0..5ff186e9f6 100644 --- a/pr-checks/checks/export-file-baseline-information.yml +++ b/pr-checks/checks/export-file-baseline-information.yml @@ -3,6 +3,7 @@ description: "Tests that file baseline information is exported when the feature operatingSystems: ["ubuntu", "macos", "windows"] versions: ["nightly-latest"] installGo: true +installDotNet: true env: CODEQL_ACTION_SUBLANGUAGE_FILE_COVERAGE: true steps: diff --git a/pr-checks/checks/go-custom-queries.yml b/pr-checks/checks/go-custom-queries.yml index ca00fd81a9..867d8dc6cc 100644 --- a/pr-checks/checks/go-custom-queries.yml +++ b/pr-checks/checks/go-custom-queries.yml @@ -7,6 +7,7 @@ versions: - linked - nightly-latest installGo: true +installDotNet: true env: DOTNET_GENERATE_ASPNET_CERTIFICATE: "false" steps: diff --git a/pr-checks/checks/local-bundle.yml b/pr-checks/checks/local-bundle.yml index 449dcbbb17..c0930772e6 100644 --- a/pr-checks/checks/local-bundle.yml +++ b/pr-checks/checks/local-bundle.yml @@ -3,6 +3,7 @@ description: "Tests using a CodeQL bundle from a local file rather than a URL" versions: ["linked"] installGo: true installPython: true +installDotNet: true steps: - name: Fetch latest CodeQL bundle run: | diff --git a/pr-checks/checks/multi-language-autodetect.yml b/pr-checks/checks/multi-language-autodetect.yml index 84c779dd9a..4892bcc316 100644 --- a/pr-checks/checks/multi-language-autodetect.yml +++ b/pr-checks/checks/multi-language-autodetect.yml @@ -5,6 +5,7 @@ env: CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI: true installGo: true installPython: true +installDotNet: true steps: - name: Use Xcode 16 if: runner.os == 'macOS' && matrix.version != 'nightly-latest' diff --git a/pr-checks/checks/packaging-codescanning-config-inputs-js.yml b/pr-checks/checks/packaging-codescanning-config-inputs-js.yml index 1b72b06b3f..6fd0f7c8a1 100644 --- a/pr-checks/checks/packaging-codescanning-config-inputs-js.yml +++ b/pr-checks/checks/packaging-codescanning-config-inputs-js.yml @@ -4,6 +4,7 @@ versions: ["linked", "default", "nightly-latest"] # This feature is not compatib installGo: true installNode: true installPython: true +installDotNet: true steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/packaging-config-inputs-js.yml b/pr-checks/checks/packaging-config-inputs-js.yml index 41275fd15c..8df42f9443 100644 --- a/pr-checks/checks/packaging-config-inputs-js.yml +++ b/pr-checks/checks/packaging-config-inputs-js.yml @@ -3,6 +3,7 @@ description: "Checks that specifying packages using a combination of a config fi versions: ["linked", "default", "nightly-latest"] # This feature is not compatible with old CLIs installGo: true installNode: true +installDotNet: true steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/packaging-config-js.yml b/pr-checks/checks/packaging-config-js.yml index 906a3a7d93..9fa41061ce 100644 --- a/pr-checks/checks/packaging-config-js.yml +++ b/pr-checks/checks/packaging-config-js.yml @@ -3,6 +3,7 @@ description: "Checks that specifying packages using only a config file works" versions: ["linked", "default", "nightly-latest"] # This feature is not compatible with old CLIs installGo: true installNode: true +installDotNet: true steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/packaging-inputs-js.yml b/pr-checks/checks/packaging-inputs-js.yml index 9d9fbe71f8..bb70de7e61 100644 --- a/pr-checks/checks/packaging-inputs-js.yml +++ b/pr-checks/checks/packaging-inputs-js.yml @@ -3,6 +3,7 @@ description: "Checks that specifying packages using the input to the Action work versions: ["linked", "default", "nightly-latest"] # This feature is not compatible with old CLIs installGo: true installNode: true +installDotNet: true steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/remote-config.yml b/pr-checks/checks/remote-config.yml index c0a9cf0bb2..24249156ea 100644 --- a/pr-checks/checks/remote-config.yml +++ b/pr-checks/checks/remote-config.yml @@ -7,6 +7,7 @@ versions: - nightly-latest installGo: true installPython: true +installDotNet: true steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/split-workflow.yml b/pr-checks/checks/split-workflow.yml index fdcf1d5304..23f82a7a5b 100644 --- a/pr-checks/checks/split-workflow.yml +++ b/pr-checks/checks/split-workflow.yml @@ -3,6 +3,7 @@ description: "Tests a split-up workflow in which we first build a database and l operatingSystems: ["ubuntu", "macos"] versions: ["linked", "default", "nightly-latest"] # This feature is not compatible with old CLIs installGo: true +installDotNet: true steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/swift-custom-build.yml b/pr-checks/checks/swift-custom-build.yml index 2ad44ff3b9..1c8f1bf3af 100644 --- a/pr-checks/checks/swift-custom-build.yml +++ b/pr-checks/checks/swift-custom-build.yml @@ -3,6 +3,7 @@ description: "Tests creation of a Swift database using custom build" versions: ["linked", "default", "nightly-latest"] operatingSystems: ["macos"] installGo: true +installDotNet: true env: DOTNET_GENERATE_ASPNET_CERTIFICATE: "false" steps: diff --git a/pr-checks/checks/unset-environment.yml b/pr-checks/checks/unset-environment.yml index 614c2006ef..4cc728600a 100644 --- a/pr-checks/checks/unset-environment.yml +++ b/pr-checks/checks/unset-environment.yml @@ -7,6 +7,7 @@ versions: - nightly-latest installGo: true installPython: true +installDotNet: true steps: - uses: ./../action/init id: init diff --git a/pr-checks/checks/upload-ref-sha-input.yml b/pr-checks/checks/upload-ref-sha-input.yml index fe55b5457b..0c8059a515 100644 --- a/pr-checks/checks/upload-ref-sha-input.yml +++ b/pr-checks/checks/upload-ref-sha-input.yml @@ -3,6 +3,7 @@ description: "Checks that specifying 'ref' and 'sha' as inputs works" versions: ["default"] installGo: true installPython: true +installDotNet: true steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/upload-sarif.yml b/pr-checks/checks/upload-sarif.yml index 0028e67ed2..cfe66a3f87 100644 --- a/pr-checks/checks/upload-sarif.yml +++ b/pr-checks/checks/upload-sarif.yml @@ -4,6 +4,7 @@ versions: ["default"] analysisKinds: ["code-scanning", "code-quality", "code-scanning,code-quality"] installGo: true installPython: true +installDotNet: true steps: - uses: ./../action/init with: diff --git a/pr-checks/checks/with-checkout-path.yml b/pr-checks/checks/with-checkout-path.yml index b18d191ccd..5cdd02c0d0 100644 --- a/pr-checks/checks/with-checkout-path.yml +++ b/pr-checks/checks/with-checkout-path.yml @@ -3,6 +3,7 @@ description: "Checks that a custom `checkout_path` will find the proper commit_o versions: ["linked"] installGo: true installPython: true +installDotNet: true steps: # This ensures we don't accidentally use the original checkout for any part of the test. - name: Delete original checkout diff --git a/pr-checks/sync.py b/pr-checks/sync.py index f247f38245..77816be760 100755 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -204,6 +204,25 @@ def writeHeader(checkStream): } }) + installDotNet = is_truthy(checkSpecification.get('installDotNet', '')) + + if installDotNet: + baseDotNetVersionExpr = '9.x' + workflowInputs['dotnet-version'] = { + 'type': 'string', + 'description': 'The version of .NET to install', + 'required': False, + 'default': baseDotNetVersionExpr, + } + + steps.append({ + 'name': 'Install .NET', + 'uses': 'actions/setup-dotnet@v5', + 'with': { + 'dotnet-version': '${{ inputs.dotnet-version || \'' + baseDotNetVersionExpr + '\' }}' + } + }) + # If container initialisation steps are present in the check specification, # make sure to execute them first. if 'container' in checkSpecification and 'container-init-steps' in checkSpecification: diff --git a/tests/multi-language-repo/global.json b/tests/multi-language-repo/global.json new file mode 100644 index 0000000000..764fdd82be --- /dev/null +++ b/tests/multi-language-repo/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "9.0.307", + "rollForward": "latestFeature" + } +}