diff --git a/.github/workflows/__all-platform-bundle.yml b/.github/workflows/__all-platform-bundle.yml index f5bd76bd6a..bdeec0d733 100644 --- a/.github/workflows/__all-platform-bundle.yml +++ b/.github/workflows/__all-platform-bundle.yml @@ -34,6 +34,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__analyze-ref-input.yml b/.github/workflows/__analyze-ref-input.yml index 6177b7ae4d..b6a8e73454 100644 --- a/.github/workflows/__analyze-ref-input.yml +++ b/.github/workflows/__analyze-ref-input.yml @@ -38,6 +38,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__autobuild-action.yml b/.github/workflows/__autobuild-action.yml index e5c023c644..505fe9cb6d 100644 --- a/.github/workflows/__autobuild-action.yml +++ b/.github/workflows/__autobuild-action.yml @@ -38,6 +38,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__config-export.yml b/.github/workflows/__config-export.yml index bca5b72cd0..ed8222be68 100644 --- a/.github/workflows/__config-export.yml +++ b/.github/workflows/__config-export.yml @@ -44,6 +44,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__cpp-deptrace-disabled.yml b/.github/workflows/__cpp-deptrace-disabled.yml index cf6dced2be..926d5937dd 100644 --- a/.github/workflows/__cpp-deptrace-disabled.yml +++ b/.github/workflows/__cpp-deptrace-disabled.yml @@ -38,6 +38,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__cpp-deptrace-enabled-on-macos.yml b/.github/workflows/__cpp-deptrace-enabled-on-macos.yml index 97ab748d83..d7b44159e0 100644 --- a/.github/workflows/__cpp-deptrace-enabled-on-macos.yml +++ b/.github/workflows/__cpp-deptrace-enabled-on-macos.yml @@ -34,6 +34,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__cpp-deptrace-enabled.yml b/.github/workflows/__cpp-deptrace-enabled.yml index 375d1b0bfb..4eb4a3b8cf 100644 --- a/.github/workflows/__cpp-deptrace-enabled.yml +++ b/.github/workflows/__cpp-deptrace-enabled.yml @@ -38,6 +38,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__diagnostics-export.yml b/.github/workflows/__diagnostics-export.yml index f53a8ce665..bfae8d2056 100644 --- a/.github/workflows/__diagnostics-export.yml +++ b/.github/workflows/__diagnostics-export.yml @@ -50,6 +50,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__export-file-baseline-information.yml b/.github/workflows/__export-file-baseline-information.yml index 502f06e8f4..441832e741 100644 --- a/.github/workflows/__export-file-baseline-information.yml +++ b/.github/workflows/__export-file-baseline-information.yml @@ -38,6 +38,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__extractor-ram-threads.yml b/.github/workflows/__extractor-ram-threads.yml index ce23db9217..002d54b8f3 100644 --- a/.github/workflows/__extractor-ram-threads.yml +++ b/.github/workflows/__extractor-ram-threads.yml @@ -34,6 +34,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__go-custom-queries.yml b/.github/workflows/__go-custom-queries.yml index cec9014927..1c675864c5 100644 --- a/.github/workflows/__go-custom-queries.yml +++ b/.github/workflows/__go-custom-queries.yml @@ -80,6 +80,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml b/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml index d316c01f1e..159b7ef699 100644 --- a/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml +++ b/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml @@ -34,6 +34,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__go-indirect-tracing-workaround.yml b/.github/workflows/__go-indirect-tracing-workaround.yml index 417d2deb40..0fed7975e5 100644 --- a/.github/workflows/__go-indirect-tracing-workaround.yml +++ b/.github/workflows/__go-indirect-tracing-workaround.yml @@ -34,6 +34,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__go-tracing-autobuilder.yml b/.github/workflows/__go-tracing-autobuilder.yml index 4958ca41ab..1637f9fffc 100644 --- a/.github/workflows/__go-tracing-autobuilder.yml +++ b/.github/workflows/__go-tracing-autobuilder.yml @@ -64,6 +64,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__go-tracing-custom-build-steps.yml b/.github/workflows/__go-tracing-custom-build-steps.yml index 8a75074211..1e8a1793c5 100644 --- a/.github/workflows/__go-tracing-custom-build-steps.yml +++ b/.github/workflows/__go-tracing-custom-build-steps.yml @@ -64,6 +64,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__go-tracing-legacy-workflow.yml b/.github/workflows/__go-tracing-legacy-workflow.yml index 8d67b966b5..c492f73f44 100644 --- a/.github/workflows/__go-tracing-legacy-workflow.yml +++ b/.github/workflows/__go-tracing-legacy-workflow.yml @@ -64,6 +64,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__init-with-registries.yml b/.github/workflows/__init-with-registries.yml index cdfb23f427..5199037270 100644 --- a/.github/workflows/__init-with-registries.yml +++ b/.github/workflows/__init-with-registries.yml @@ -51,6 +51,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__javascript-source-root.yml b/.github/workflows/__javascript-source-root.yml index 81913b2229..d97ea8fa57 100644 --- a/.github/workflows/__javascript-source-root.yml +++ b/.github/workflows/__javascript-source-root.yml @@ -38,6 +38,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__language-aliases.yml b/.github/workflows/__language-aliases.yml index 442669705d..ad09ba50ff 100644 --- a/.github/workflows/__language-aliases.yml +++ b/.github/workflows/__language-aliases.yml @@ -34,6 +34,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index 1a4d03d20d..3f0abc055d 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -64,6 +64,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__packaging-codescanning-config-inputs-js.yml b/.github/workflows/__packaging-codescanning-config-inputs-js.yml index 2b62a7f798..5f6df119ea 100644 --- a/.github/workflows/__packaging-codescanning-config-inputs-js.yml +++ b/.github/workflows/__packaging-codescanning-config-inputs-js.yml @@ -50,6 +50,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__packaging-config-inputs-js.yml b/.github/workflows/__packaging-config-inputs-js.yml index d3a1cd9501..301ed93644 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -50,6 +50,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__packaging-config-js.yml b/.github/workflows/__packaging-config-js.yml index 316d899eee..1ad522c4cf 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -50,6 +50,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__packaging-inputs-js.yml b/.github/workflows/__packaging-inputs-js.yml index e549704fdf..70107fbcc7 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -50,6 +50,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__remote-config.yml b/.github/workflows/__remote-config.yml index e4869036a7..2fe580d64d 100644 --- a/.github/workflows/__remote-config.yml +++ b/.github/workflows/__remote-config.yml @@ -80,6 +80,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__resolve-environment-action.yml b/.github/workflows/__resolve-environment-action.yml index dee884533f..cd09e77e73 100644 --- a/.github/workflows/__resolve-environment-action.yml +++ b/.github/workflows/__resolve-environment-action.yml @@ -56,6 +56,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__rubocop-multi-language.yml b/.github/workflows/__rubocop-multi-language.yml index 7dc0f31f2d..5212739e78 100644 --- a/.github/workflows/__rubocop-multi-language.yml +++ b/.github/workflows/__rubocop-multi-language.yml @@ -34,6 +34,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__ruby.yml b/.github/workflows/__ruby.yml index 359ff243a1..494ea3c970 100644 --- a/.github/workflows/__ruby.yml +++ b/.github/workflows/__ruby.yml @@ -44,6 +44,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__scaling-reserved-ram.yml b/.github/workflows/__scaling-reserved-ram.yml index ff6186ef5f..a05bf4fe42 100644 --- a/.github/workflows/__scaling-reserved-ram.yml +++ b/.github/workflows/__scaling-reserved-ram.yml @@ -64,6 +64,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__split-workflow.yml b/.github/workflows/__split-workflow.yml index f7680971c4..2a1de694ca 100644 --- a/.github/workflows/__split-workflow.yml +++ b/.github/workflows/__split-workflow.yml @@ -44,6 +44,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__submit-sarif-failure.yml b/.github/workflows/__submit-sarif-failure.yml index 1fd115c8f1..6e0547ce5d 100644 --- a/.github/workflows/__submit-sarif-failure.yml +++ b/.github/workflows/__submit-sarif-failure.yml @@ -38,6 +38,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__swift-custom-build.yml b/.github/workflows/__swift-custom-build.yml index d805b890e6..f7e46a8964 100644 --- a/.github/workflows/__swift-custom-build.yml +++ b/.github/workflows/__swift-custom-build.yml @@ -44,6 +44,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__test-autobuild-working-dir.yml b/.github/workflows/__test-autobuild-working-dir.yml index a9ad5b6bf1..bb33137958 100644 --- a/.github/workflows/__test-autobuild-working-dir.yml +++ b/.github/workflows/__test-autobuild-working-dir.yml @@ -34,6 +34,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__test-local-codeql.yml b/.github/workflows/__test-local-codeql.yml index d257cda3e2..dbe401e8cb 100644 --- a/.github/workflows/__test-local-codeql.yml +++ b/.github/workflows/__test-local-codeql.yml @@ -34,6 +34,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__test-proxy.yml b/.github/workflows/__test-proxy.yml index 20bf9c4e4a..aefaaf6307 100644 --- a/.github/workflows/__test-proxy.yml +++ b/.github/workflows/__test-proxy.yml @@ -34,6 +34,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__unset-environment.yml b/.github/workflows/__unset-environment.yml index 697617e182..fa0583f4a4 100644 --- a/.github/workflows/__unset-environment.yml +++ b/.github/workflows/__unset-environment.yml @@ -48,6 +48,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__upload-ref-sha-input.yml b/.github/workflows/__upload-ref-sha-input.yml index 3de7c55799..a0823442cb 100644 --- a/.github/workflows/__upload-ref-sha-input.yml +++ b/.github/workflows/__upload-ref-sha-input.yml @@ -38,6 +38,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test diff --git a/.github/workflows/__with-checkout-path.yml b/.github/workflows/__with-checkout-path.yml index e15459fddd..cf225e6e75 100644 --- a/.github/workflows/__with-checkout-path.yml +++ b/.github/workflows/__with-checkout-path.yml @@ -80,6 +80,22 @@ jobs: timeout-minutes: 45 runs-on: ${{ matrix.os }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: >- + matrix.os == 'macos-latest' && ( + + matrix.version == 'stable-20220908' || + + matrix.version == 'stable-20221211' || + + matrix.version == 'stable-20230418' || + + matrix.version == 'stable-v2.13.5' || + + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' - name: Check out repository uses: actions/checkout@v4 - name: Prepare test @@ -96,27 +112,34 @@ jobs: ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV + - name: Delete original checkout + shell: bash + run: | + # delete the original checkout so we don't accidentally use it. + # Actions does not support deleting the current working directory, so we + # delete the contents of the directory instead. + rm -rf ./* .github .git + # Check out the actions repo again, but at a different location. + # choose an arbitrary SHA so that we can later test that the commit_oid is not from main - uses: actions/checkout@v4 with: ref: 474bbf07f9247ffe1856c6a0f94aeeb10e7afee6 path: x/y/z/some-path + - uses: ./../action/init with: tools: ${{ steps.prepare-test.outputs.tools-url }} # it's enough to test one compiled language and one interpreted language languages: csharp,javascript - source-path: x/y/z/some-path/tests/multi-language-repo + source-root: x/y/z/some-path/tests/multi-language-repo debug: true - - name: Build code (non-windows) - shell: bash - if: ${{ runner.os != 'Windows' }} - run: | - $CODEQL_RUNNER x/y/z/some-path/tests/multi-language-repo/build.sh - - name: Build code (windows) + + - name: Build code shell: bash - if: ${{ runner.os == 'Windows' }} + working-directory: x/y/z/some-path/tests/multi-language-repo run: | - x/y/z/some-path/tests/multi-language-repo/build.sh + ./build.sh + - uses: ./../action/analyze with: checkout_path: x/y/z/some-path/tests/multi-language-repo diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 70ae145e53..508f3292a0 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -69,6 +69,18 @@ jobs: timeout-minutes: 45 steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: | + matrix.os == 'macos-latest' && ( + matrix.version == 'stable-20220908' || + matrix.version == 'stable-20221211' || + matrix.version == 'stable-20230418' || + matrix.version == 'stable-v2.13.5' || + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' + - uses: actions/checkout@v4 - name: npm test run: | diff --git a/.github/workflows/python-deps.yml b/.github/workflows/python-deps.yml index c26eaf17e8..540194a027 100644 --- a/.github/workflows/python-deps.yml +++ b/.github/workflows/python-deps.yml @@ -36,6 +36,18 @@ jobs: PYTHON_VERSION: ${{ matrix.python_version }} steps: + - name: Setup Python on MacOS + uses: actions/setup-python@v4 + if: | + matrix.os == 'macos-latest' && ( + matrix.version == 'stable-20220908' || + matrix.version == 'stable-20221211' || + matrix.version == 'stable-20230418' || + matrix.version == 'stable-v2.13.5' || + matrix.version == 'stable-v2.14.6') + with: + python-version: '3.11' + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 diff --git a/pr-checks/checks/with-checkout-path.yml b/pr-checks/checks/with-checkout-path.yml index 42564c64ea..ccc8fa1a3b 100644 --- a/pr-checks/checks/with-checkout-path.yml +++ b/pr-checks/checks/with-checkout-path.yml @@ -1,29 +1,35 @@ name: "Use a custom `checkout_path`" description: "Checks that a custom `checkout_path` will find the proper commit_oid" steps: + # This ensures we don't accidentally use the original checkout for any part of the test. + - name: Delete original checkout + shell: bash + run: | + # delete the original checkout so we don't accidentally use it. + # Actions does not support deleting the current working directory, so we + # delete the contents of the directory instead. + rm -rf ./* .github .git # Check out the actions repo again, but at a different location. # choose an arbitrary SHA so that we can later test that the commit_oid is not from main - uses: actions/checkout@v4 with: ref: 474bbf07f9247ffe1856c6a0f94aeeb10e7afee6 path: x/y/z/some-path + - uses: ./../action/init with: tools: ${{ steps.prepare-test.outputs.tools-url }} # it's enough to test one compiled language and one interpreted language languages: csharp,javascript - source-path: x/y/z/some-path/tests/multi-language-repo + source-root: x/y/z/some-path/tests/multi-language-repo debug: true - - name: Build code (non-windows) - shell: bash - if: ${{ runner.os != 'Windows' }} - run: | - $CODEQL_RUNNER x/y/z/some-path/tests/multi-language-repo/build.sh - - name: Build code (windows) + + - name: Build code shell: bash - if: ${{ runner.os == 'Windows' }} + working-directory: x/y/z/some-path/tests/multi-language-repo run: | - x/y/z/some-path/tests/multi-language-repo/build.sh + ./build.sh + - uses: ./../action/analyze with: checkout_path: x/y/z/some-path/tests/multi-language-repo diff --git a/pr-checks/sync.py b/pr-checks/sync.py index 652cf0c37f..3b9f69202f 100755 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -74,6 +74,23 @@ def writeHeader(checkStream): useAllPlatformBundle = checkSpecification['useAllPlatformBundle'] steps = [ + { + 'name': 'Setup Python on MacOS', + 'uses': 'actions/setup-python@v4', + # Ensure that this is serialized as a folded (`>`) string to preserve the readability + # of the generated workflow. + 'if': FoldedScalarString(textwrap.dedent(''' + matrix.os == 'macos-latest' && ( + matrix.version == 'stable-20220908' || + matrix.version == 'stable-20221211' || + matrix.version == 'stable-20230418' || + matrix.version == 'stable-v2.13.5' || + matrix.version == 'stable-v2.14.6') + ''').strip()), + 'with': { + 'python-version': '3.11' + } + }, { 'name': 'Check out repository', 'uses': 'actions/checkout@v4'