diff --git a/.github/actions/prepare-test/action.yml b/.github/actions/prepare-test/action.yml index 44a01f69f4..ba60471ed7 100644 --- a/.github/actions/prepare-test/action.yml +++ b/.github/actions/prepare-test/action.yml @@ -8,6 +8,10 @@ inputs: description: "If true, we output a tools URL with codeql-bundle.tar.gz file rather than platform-specific URL" default: 'false' required: false + setup-kotlin: + description: "If true, we setup kotlin" + default: 'true' + required: true outputs: tools-url: description: "The value that should be passed as the 'tools' input of the 'init' step." @@ -58,3 +62,8 @@ runs: echo "::error::Unrecognized version specified!" exit 1 fi + + - uses: fwilhe2/setup-kotlin@9c245a6425255f5e98ba1ce6c15d31fce7eca9da + if: ${{ inputs.setup-kotlin == 'true' }} + with: + version: 1.8.21 diff --git a/.github/workflows/__all-platform-bundle.yml b/.github/workflows/__all-platform-bundle.yml index bb7e2060ca..990ea6edac 100644 --- a/.github/workflows/__all-platform-bundle.yml +++ b/.github/workflows/__all-platform-bundle.yml @@ -7,7 +7,6 @@ name: PR Check - All-platform bundle env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'true' + setup-kotlin: 'true' - id: init uses: ./../action/init with: diff --git a/.github/workflows/__analyze-ref-input.yml b/.github/workflows/__analyze-ref-input.yml index 753bfadcef..57634f295a 100644 --- a/.github/workflows/__analyze-ref-input.yml +++ b/.github/workflows/__analyze-ref-input.yml @@ -7,7 +7,6 @@ name: "PR Check - Analyze: 'ref' and 'sha' from inputs" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -61,6 +60,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - 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 d36e55697c..e9c4a2d869 100644 --- a/.github/workflows/__autobuild-action.yml +++ b/.github/workflows/__autobuild-action.yml @@ -7,7 +7,6 @@ name: PR Check - autobuild-action env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -61,6 +60,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init with: languages: csharp diff --git a/.github/workflows/__autobuild-direct-tracing-with-working-dir.yml b/.github/workflows/__autobuild-direct-tracing-with-working-dir.yml index 5d2ba7c2de..ad297df99d 100644 --- a/.github/workflows/__autobuild-direct-tracing-with-working-dir.yml +++ b/.github/workflows/__autobuild-direct-tracing-with-working-dir.yml @@ -7,7 +7,6 @@ name: PR Check - Autobuild direct tracing (custom working directory) env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -63,6 +62,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Test setup shell: bash run: | diff --git a/.github/workflows/__autobuild-direct-tracing.yml b/.github/workflows/__autobuild-direct-tracing.yml index 1317a344dc..88b78a9d8d 100644 --- a/.github/workflows/__autobuild-direct-tracing.yml +++ b/.github/workflows/__autobuild-direct-tracing.yml @@ -7,7 +7,6 @@ name: PR Check - Autobuild direct tracing env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -63,6 +62,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Set up Java test repo configuration shell: bash run: | diff --git a/.github/workflows/__build-mode-autobuild.yml b/.github/workflows/__build-mode-autobuild.yml index 7169d84f12..d22b8a1f1f 100644 --- a/.github/workflows/__build-mode-autobuild.yml +++ b/.github/workflows/__build-mode-autobuild.yml @@ -7,7 +7,6 @@ name: PR Check - Build mode autobuild env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Set up Java test repo configuration run: | mv * .github ../action/tests/multi-language-repo/ diff --git a/.github/workflows/__build-mode-manual.yml b/.github/workflows/__build-mode-manual.yml index fc40744e79..1d309a5f9c 100644 --- a/.github/workflows/__build-mode-manual.yml +++ b/.github/workflows/__build-mode-manual.yml @@ -7,7 +7,6 @@ name: PR Check - Build mode manual env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init id: init with: diff --git a/.github/workflows/__build-mode-none.yml b/.github/workflows/__build-mode-none.yml index 23029f02e0..956643d6c3 100644 --- a/.github/workflows/__build-mode-none.yml +++ b/.github/workflows/__build-mode-none.yml @@ -7,7 +7,6 @@ name: PR Check - Build mode none env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -59,6 +58,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init id: init with: diff --git a/.github/workflows/__build-mode-rollback.yml b/.github/workflows/__build-mode-rollback.yml index fb52a7c881..cfed618c3a 100644 --- a/.github/workflows/__build-mode-rollback.yml +++ b/.github/workflows/__build-mode-rollback.yml @@ -7,7 +7,6 @@ name: PR Check - Build mode rollback env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Set up Java test repo configuration run: | mv * .github ../action/tests/multi-language-repo/ diff --git a/.github/workflows/__cleanup-db-cluster-dir.yml b/.github/workflows/__cleanup-db-cluster-dir.yml index 3c51915af8..ba32b120b8 100644 --- a/.github/workflows/__cleanup-db-cluster-dir.yml +++ b/.github/workflows/__cleanup-db-cluster-dir.yml @@ -7,7 +7,6 @@ name: PR Check - Clean up database cluster directory env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Add a file to the database cluster directory run: | mkdir -p "${{ runner.temp }}/customDbLocation/javascript" diff --git a/.github/workflows/__config-export.yml b/.github/workflows/__config-export.yml index e4f5fb300a..8cdde9dcc5 100644 --- a/.github/workflows/__config-export.yml +++ b/.github/workflows/__config-export.yml @@ -7,7 +7,6 @@ name: PR Check - Config export env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -67,6 +66,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init with: languages: javascript diff --git a/.github/workflows/__config-input.yml b/.github/workflows/__config-input.yml index 85073ac703..d5a347f2c5 100644 --- a/.github/workflows/__config-input.yml +++ b/.github/workflows/__config-input.yml @@ -7,7 +7,6 @@ name: PR Check - Config input env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Copy queries into workspace run: | cp -a ../action/queries . diff --git a/.github/workflows/__cpp-deptrace-disabled.yml b/.github/workflows/__cpp-deptrace-disabled.yml index 6257336963..1dde035cab 100644 --- a/.github/workflows/__cpp-deptrace-disabled.yml +++ b/.github/workflows/__cpp-deptrace-disabled.yml @@ -7,7 +7,6 @@ name: 'PR Check - C/C++: disabling autoinstalling dependencies (Linux)' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -61,6 +60,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Test setup shell: bash run: | diff --git a/.github/workflows/__cpp-deptrace-enabled-on-macos.yml b/.github/workflows/__cpp-deptrace-enabled-on-macos.yml index ec46f3520b..84b0f49b42 100644 --- a/.github/workflows/__cpp-deptrace-enabled-on-macos.yml +++ b/.github/workflows/__cpp-deptrace-enabled-on-macos.yml @@ -7,7 +7,6 @@ name: 'PR Check - C/C++: autoinstalling dependencies is skipped (macOS)' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Test setup shell: bash run: | diff --git a/.github/workflows/__cpp-deptrace-enabled.yml b/.github/workflows/__cpp-deptrace-enabled.yml index f04cc7815c..0efab3be35 100644 --- a/.github/workflows/__cpp-deptrace-enabled.yml +++ b/.github/workflows/__cpp-deptrace-enabled.yml @@ -7,7 +7,6 @@ name: 'PR Check - C/C++: autoinstalling dependencies (Linux)' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -61,6 +60,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Test setup shell: bash run: | diff --git a/.github/workflows/__diagnostics-export.yml b/.github/workflows/__diagnostics-export.yml index d42d1addfa..b6ddb9e310 100644 --- a/.github/workflows/__diagnostics-export.yml +++ b/.github/workflows/__diagnostics-export.yml @@ -7,7 +7,6 @@ name: PR Check - Diagnostic export env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -73,6 +72,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - 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 227db003c9..582e896e3c 100644 --- a/.github/workflows/__export-file-baseline-information.yml +++ b/.github/workflows/__export-file-baseline-information.yml @@ -7,7 +7,6 @@ name: PR Check - Export file baseline information env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -61,6 +60,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init id: init with: diff --git a/.github/workflows/__extractor-ram-threads.yml b/.github/workflows/__extractor-ram-threads.yml index 5141607251..266192a4eb 100644 --- a/.github/workflows/__extractor-ram-threads.yml +++ b/.github/workflows/__extractor-ram-threads.yml @@ -7,7 +7,6 @@ name: PR Check - Extractor ram and threads options test env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init with: languages: java diff --git a/.github/workflows/__go-custom-queries.yml b/.github/workflows/__go-custom-queries.yml index d685e2678a..0500bff736 100644 --- a/.github/workflows/__go-custom-queries.yml +++ b/.github/workflows/__go-custom-queries.yml @@ -7,7 +7,6 @@ name: 'PR Check - Go: Custom queries' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -103,6 +102,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: actions/setup-go@v5 with: go-version: '>=1.21.0' diff --git a/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml b/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml index 11701adf22..8fe384bf3a 100644 --- a/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml +++ b/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml @@ -7,7 +7,6 @@ name: 'PR Check - Go: diagnostic when Go is changed after init step' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: actions/setup-go@v5 with: # We need a Go version that ships with statically linked binaries on Linux diff --git a/.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml b/.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml index 34568d08db..aae27bd1e5 100644 --- a/.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml +++ b/.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml @@ -7,7 +7,6 @@ name: 'PR Check - Go: diagnostic when `file` is not installed' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: actions/setup-go@v5 with: # We need a Go version that ships with statically linked binaries on Linux diff --git a/.github/workflows/__go-indirect-tracing-workaround.yml b/.github/workflows/__go-indirect-tracing-workaround.yml index 9e7cc857ee..8cf7e9856e 100644 --- a/.github/workflows/__go-indirect-tracing-workaround.yml +++ b/.github/workflows/__go-indirect-tracing-workaround.yml @@ -7,7 +7,6 @@ name: 'PR Check - Go: workaround for indirect tracing' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: actions/setup-go@v5 with: # We need a Go version that ships with statically linked binaries on Linux diff --git a/.github/workflows/__go-tracing-autobuilder.yml b/.github/workflows/__go-tracing-autobuilder.yml index 2b047fb882..ad90b3d6cc 100644 --- a/.github/workflows/__go-tracing-autobuilder.yml +++ b/.github/workflows/__go-tracing-autobuilder.yml @@ -7,7 +7,6 @@ name: 'PR Check - Go: tracing with autobuilder step' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -87,6 +86,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: actions/setup-go@v5 with: go-version: ~1.22.0 diff --git a/.github/workflows/__go-tracing-custom-build-steps.yml b/.github/workflows/__go-tracing-custom-build-steps.yml index f89a527114..8adca75346 100644 --- a/.github/workflows/__go-tracing-custom-build-steps.yml +++ b/.github/workflows/__go-tracing-custom-build-steps.yml @@ -7,7 +7,6 @@ name: 'PR Check - Go: tracing with custom build steps' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -87,6 +86,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: actions/setup-go@v5 with: go-version: ~1.22.0 diff --git a/.github/workflows/__go-tracing-legacy-workflow.yml b/.github/workflows/__go-tracing-legacy-workflow.yml index c3cb578a2c..8539018afb 100644 --- a/.github/workflows/__go-tracing-legacy-workflow.yml +++ b/.github/workflows/__go-tracing-legacy-workflow.yml @@ -7,7 +7,6 @@ name: 'PR Check - Go: tracing with legacy workflow' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -87,6 +86,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: actions/setup-go@v5 with: go-version: ~1.22.0 diff --git a/.github/workflows/__init-with-registries.yml b/.github/workflows/__init-with-registries.yml index bbf962b940..66677a7a32 100644 --- a/.github/workflows/__init-with-registries.yml +++ b/.github/workflows/__init-with-registries.yml @@ -7,7 +7,6 @@ name: 'PR Check - Packaging: Download using registries' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -74,6 +73,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Init with registries uses: ./../action/init with: diff --git a/.github/workflows/__javascript-source-root.yml b/.github/workflows/__javascript-source-root.yml index e0bf8f234c..370ea1ffbf 100644 --- a/.github/workflows/__javascript-source-root.yml +++ b/.github/workflows/__javascript-source-root.yml @@ -7,7 +7,6 @@ name: PR Check - Custom source root env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -61,6 +60,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Move codeql-action shell: bash run: | diff --git a/.github/workflows/__language-aliases.yml b/.github/workflows/__language-aliases.yml index eefc40bfd9..d6b1411393 100644 --- a/.github/workflows/__language-aliases.yml +++ b/.github/workflows/__language-aliases.yml @@ -7,7 +7,6 @@ name: PR Check - Language aliases env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init with: languages: C#,java-kotlin,swift,typescript diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index 1e73102fe4..e2a7cbeb3a 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -7,7 +7,6 @@ name: PR Check - Multi-language repository env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -71,6 +70,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: actions/setup-go@v5 with: go-version: '>=1.21.0' diff --git a/.github/workflows/__packaging-codescanning-config-inputs-js.yml b/.github/workflows/__packaging-codescanning-config-inputs-js.yml index 101b6bc57a..04962f9b83 100644 --- a/.github/workflows/__packaging-codescanning-config-inputs-js.yml +++ b/.github/workflows/__packaging-codescanning-config-inputs-js.yml @@ -7,7 +7,6 @@ name: 'PR Check - Packaging: Config and input passed to the CLI' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -73,6 +72,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - 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 bb514e765e..85118a5d18 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -7,7 +7,6 @@ name: 'PR Check - Packaging: Config and input' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -73,6 +72,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - 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 1b2f01a594..0a398718bc 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -7,7 +7,6 @@ name: 'PR Check - Packaging: Config file' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -73,6 +72,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - 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 18e0dc3fa4..fda1bcc75b 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -7,7 +7,6 @@ name: 'PR Check - Packaging: Action input' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -73,6 +72,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - 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 c5f2646082..e36cdd4e10 100644 --- a/.github/workflows/__remote-config.yml +++ b/.github/workflows/__remote-config.yml @@ -7,7 +7,6 @@ name: PR Check - Remote config file env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -103,6 +102,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init with: tools: ${{ steps.prepare-test.outputs.tools-url }} diff --git a/.github/workflows/__resolve-environment-action.yml b/.github/workflows/__resolve-environment-action.yml index f0a886269c..78bc41e938 100644 --- a/.github/workflows/__resolve-environment-action.yml +++ b/.github/workflows/__resolve-environment-action.yml @@ -7,7 +7,6 @@ name: PR Check - Resolve environment env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -79,6 +78,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init with: languages: ${{ matrix.version == 'stable-v2.13.4' && 'go' || 'go,javascript-typescript' diff --git a/.github/workflows/__rubocop-multi-language.yml b/.github/workflows/__rubocop-multi-language.yml index fd66a1385f..39283d3952 100644 --- a/.github/workflows/__rubocop-multi-language.yml +++ b/.github/workflows/__rubocop-multi-language.yml @@ -7,7 +7,6 @@ name: PR Check - RuboCop multi-language env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/__ruby.yml b/.github/workflows/__ruby.yml index d95e30f697..8d16e0e30e 100644 --- a/.github/workflows/__ruby.yml +++ b/.github/workflows/__ruby.yml @@ -7,7 +7,6 @@ name: PR Check - Ruby analysis env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -67,6 +66,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init with: languages: ruby diff --git a/.github/workflows/__scaling-reserved-ram.yml b/.github/workflows/__scaling-reserved-ram.yml index 6ec16715ec..a9cf98c345 100644 --- a/.github/workflows/__scaling-reserved-ram.yml +++ b/.github/workflows/__scaling-reserved-ram.yml @@ -7,7 +7,6 @@ name: PR Check - Scaling reserved RAM env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -71,6 +70,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: actions/setup-go@v5 with: go-version: '>=1.21.0' diff --git a/.github/workflows/__split-workflow.yml b/.github/workflows/__split-workflow.yml index 0ae20642e5..53eb3d5382 100644 --- a/.github/workflows/__split-workflow.yml +++ b/.github/workflows/__split-workflow.yml @@ -7,7 +7,6 @@ name: PR Check - Split workflow env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -67,6 +66,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init with: config-file: .github/codeql/codeql-config-packaging3.yml diff --git a/.github/workflows/__submit-sarif-failure.yml b/.github/workflows/__submit-sarif-failure.yml index 129a57ed3f..3e3e6b08c0 100644 --- a/.github/workflows/__submit-sarif-failure.yml +++ b/.github/workflows/__submit-sarif-failure.yml @@ -7,7 +7,6 @@ name: PR Check - Submit SARIF after failure env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -61,6 +60,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: actions/checkout@v4 - uses: ./init with: diff --git a/.github/workflows/__swift-custom-build.yml b/.github/workflows/__swift-custom-build.yml index 961ddacf8d..765c336670 100644 --- a/.github/workflows/__swift-custom-build.yml +++ b/.github/workflows/__swift-custom-build.yml @@ -7,7 +7,6 @@ name: PR Check - Swift analysis using a custom build command env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -61,6 +60,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init id: init with: diff --git a/.github/workflows/__test-autobuild-working-dir.yml b/.github/workflows/__test-autobuild-working-dir.yml index f2736bfad8..1379ec51b2 100644 --- a/.github/workflows/__test-autobuild-working-dir.yml +++ b/.github/workflows/__test-autobuild-working-dir.yml @@ -7,7 +7,6 @@ name: PR Check - Autobuild working directory env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Test setup shell: bash run: | diff --git a/.github/workflows/__test-local-codeql.yml b/.github/workflows/__test-local-codeql.yml index a3af1d691c..b2148455bc 100644 --- a/.github/workflows/__test-local-codeql.yml +++ b/.github/workflows/__test-local-codeql.yml @@ -7,7 +7,6 @@ name: PR Check - Local CodeQL bundle env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Fetch a CodeQL bundle shell: bash env: diff --git a/.github/workflows/__test-proxy.yml b/.github/workflows/__test-proxy.yml index 2cdbf3a5eb..8579f6056e 100644 --- a/.github/workflows/__test-proxy.yml +++ b/.github/workflows/__test-proxy.yml @@ -7,7 +7,6 @@ name: PR Check - Proxy test env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -57,6 +56,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'false' - uses: ./../action/init with: languages: javascript diff --git a/.github/workflows/__unset-environment.yml b/.github/workflows/__unset-environment.yml index 16e16a6778..07275673e8 100644 --- a/.github/workflows/__unset-environment.yml +++ b/.github/workflows/__unset-environment.yml @@ -7,7 +7,6 @@ name: PR Check - Test unsetting environment variables env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -67,6 +66,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - uses: ./../action/init id: init with: @@ -80,10 +80,7 @@ jobs: go-version: '>=1.21.0' - name: Build code shell: bash - # Disable Kotlin analysis while it's incompatible with Kotlin 1.8, until we find a - # workaround for our PR checks. - run: env -i CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN=true PATH="$PATH" HOME="$HOME" - ./build.sh + run: env -i PATH="$PATH" HOME="$HOME" ./build.sh - uses: ./../action/analyze id: analysis with: diff --git a/.github/workflows/__upload-ref-sha-input.yml b/.github/workflows/__upload-ref-sha-input.yml index fb264980b9..3cb8e096ec 100644 --- a/.github/workflows/__upload-ref-sha-input.yml +++ b/.github/workflows/__upload-ref-sha-input.yml @@ -7,7 +7,6 @@ name: "PR Check - Upload-sarif: 'ref' and 'sha' from inputs" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -61,6 +60,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - 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 60b1f338e2..4923207883 100644 --- a/.github/workflows/__with-checkout-path.yml +++ b/.github/workflows/__with-checkout-path.yml @@ -7,7 +7,6 @@ name: PR Check - Use a custom `checkout_path` env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: @@ -61,6 +60,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' + setup-kotlin: 'true' - name: Delete original checkout shell: bash run: | diff --git a/.github/workflows/debug-artifacts-failure.yml b/.github/workflows/debug-artifacts-failure.yml index caea667895..871f0070c6 100644 --- a/.github/workflows/debug-artifacts-failure.yml +++ b/.github/workflows/debug-artifacts-failure.yml @@ -2,9 +2,6 @@ # when the analyze step fails. name: PR Check - Debug artifacts after failure env: - # Disable Kotlin analysis while it's incompatible with Kotlin 1.8, until we find a - # workaround for our PR checks. - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: true GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} on: push: diff --git a/.github/workflows/debug-artifacts.yml b/.github/workflows/debug-artifacts.yml index 5b23e036a2..0c0182f3d3 100644 --- a/.github/workflows/debug-artifacts.yml +++ b/.github/workflows/debug-artifacts.yml @@ -1,9 +1,6 @@ # Checks logs, SARIF, and database bundle debug artifacts exist. name: PR Check - Debug artifact upload env: - # Disable Kotlin analysis while it's incompatible with Kotlin 1.8, until we find a - # workaround for our PR checks. - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: true GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} on: push: diff --git a/.github/workflows/test-codeql-bundle-all.yml b/.github/workflows/test-codeql-bundle-all.yml index 0f1f6a06f2..54ed2ed115 100644 --- a/.github/workflows/test-codeql-bundle-all.yml +++ b/.github/workflows/test-codeql-bundle-all.yml @@ -2,9 +2,6 @@ name: 'PR Check - CodeQL Bundle All' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GO111MODULE: auto - # Disable Kotlin analysis while it's incompatible with Kotlin 1.8, until we find a - # workaround for our PR checks. - CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN: 'true' on: push: branches: diff --git a/pr-checks/checks/unset-environment.yml b/pr-checks/checks/unset-environment.yml index 0fea5d95af..d7513114f0 100644 --- a/pr-checks/checks/unset-environment.yml +++ b/pr-checks/checks/unset-environment.yml @@ -17,9 +17,7 @@ steps: go-version: '>=1.21.0' - name: Build code shell: bash - # Disable Kotlin analysis while it's incompatible with Kotlin 1.8, until we find a - # workaround for our PR checks. - run: env -i CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN=true PATH="$PATH" HOME="$HOME" ./build.sh + run: env -i PATH="$PATH" HOME="$HOME" ./build.sh - uses: ./../action/analyze id: analysis with: diff --git a/pr-checks/sync.py b/pr-checks/sync.py index 5dcd0b5507..6d96bd620c 100755 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -72,7 +72,7 @@ def writeHeader(checkStream): 'os': "macos-12", 'version': version }) - else: + else: matrix.append({ 'os': runnerImage, 'version': version @@ -108,7 +108,10 @@ def writeHeader(checkStream): 'uses': './.github/actions/prepare-test', 'with': { 'version': '${{ matrix.version }}', - 'use-all-platform-bundle': useAllPlatformBundle + 'use-all-platform-bundle': useAllPlatformBundle, + # If the action is being run from a container, then do not setup kotlin. + # This is because the kotlin binaries cannot be downloaded from the container. + 'setup-kotlin': str(not 'container' in checkSpecification).lower(), } }, ] @@ -149,10 +152,7 @@ def writeHeader(checkStream): 'name': f"PR Check - {checkSpecification['name']}", 'env': { 'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}', - 'GO111MODULE': 'auto', - # Disable Kotlin analysis while it's incompatible with Kotlin 1.8, until we find a - # workaround for our PR checks. - 'CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN': 'true', + 'GO111MODULE': 'auto' }, 'on': { 'push': {
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: