diff --git a/.github/workflows/__analyze-ref-input.yml b/.github/workflows/__analyze-ref-input.yml index f20837daa..3f5a56a8b 100644 --- a/.github/workflows/__analyze-ref-input.yml +++ b/.github/workflows/__analyze-ref-input.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: "PR Check - Analyze: 'ref' and 'sha' from inputs" diff --git a/.github/workflows/__autobuild-action.yml b/.github/workflows/__autobuild-action.yml index ee0aa9cc3..3e8e3b50d 100644 --- a/.github/workflows/__autobuild-action.yml +++ b/.github/workflows/__autobuild-action.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - autobuild-action diff --git a/.github/workflows/__config-export.yml b/.github/workflows/__config-export.yml index a49d72cd9..86d3b8092 100644 --- a/.github/workflows/__config-export.yml +++ b/.github/workflows/__config-export.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Config export diff --git a/.github/workflows/__diagnostics-export.yml b/.github/workflows/__diagnostics-export.yml index 41744503b..aef8a03fc 100644 --- a/.github/workflows/__diagnostics-export.yml +++ b/.github/workflows/__diagnostics-export.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Diagnostic export diff --git a/.github/workflows/__export-file-baseline-information.yml b/.github/workflows/__export-file-baseline-information.yml index 895bf393c..299e489f5 100644 --- a/.github/workflows/__export-file-baseline-information.yml +++ b/.github/workflows/__export-file-baseline-information.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Export file baseline information diff --git a/.github/workflows/__extractor-ram-threads.yml b/.github/workflows/__extractor-ram-threads.yml index a8087a70a..ec013f2a4 100644 --- a/.github/workflows/__extractor-ram-threads.yml +++ b/.github/workflows/__extractor-ram-threads.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Extractor ram and threads options test diff --git a/.github/workflows/__go-custom-queries.yml b/.github/workflows/__go-custom-queries.yml index b75dfeab6..999e43501 100644 --- a/.github/workflows/__go-custom-queries.yml +++ b/.github/workflows/__go-custom-queries.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: 'PR Check - Go: Custom queries' diff --git a/.github/workflows/__go-tracing-autobuilder.yml b/.github/workflows/__go-tracing-autobuilder.yml index a28f35d9a..71af70610 100644 --- a/.github/workflows/__go-tracing-autobuilder.yml +++ b/.github/workflows/__go-tracing-autobuilder.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: 'PR Check - Go: tracing with autobuilder step' diff --git a/.github/workflows/__go-tracing-custom-build-steps.yml b/.github/workflows/__go-tracing-custom-build-steps.yml index 47605c46f..9f6c8543f 100644 --- a/.github/workflows/__go-tracing-custom-build-steps.yml +++ b/.github/workflows/__go-tracing-custom-build-steps.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: 'PR Check - Go: tracing with custom build steps' diff --git a/.github/workflows/__go-tracing-legacy-workflow.yml b/.github/workflows/__go-tracing-legacy-workflow.yml index 606f55114..f740808ee 100644 --- a/.github/workflows/__go-tracing-legacy-workflow.yml +++ b/.github/workflows/__go-tracing-legacy-workflow.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: 'PR Check - Go: tracing with legacy workflow' diff --git a/.github/workflows/__init-with-registries.yml b/.github/workflows/__init-with-registries.yml index 9c7618a5c..8b9faf3d3 100644 --- a/.github/workflows/__init-with-registries.yml +++ b/.github/workflows/__init-with-registries.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: 'PR Check - Packaging: Download using registries' diff --git a/.github/workflows/__javascript-source-root.yml b/.github/workflows/__javascript-source-root.yml index e9768a26d..6657d4fe5 100644 --- a/.github/workflows/__javascript-source-root.yml +++ b/.github/workflows/__javascript-source-root.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Custom source root diff --git a/.github/workflows/__ml-powered-queries.yml b/.github/workflows/__ml-powered-queries.yml index 55233cfb5..edce39098 100644 --- a/.github/workflows/__ml-powered-queries.yml +++ b/.github/workflows/__ml-powered-queries.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - ML-powered queries diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index a88650c6e..7adbb5823 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Multi-language repository diff --git a/.github/workflows/__packaging-codescanning-config-inputs-js.yml b/.github/workflows/__packaging-codescanning-config-inputs-js.yml index 8a106ff43..27cca78bd 100644 --- a/.github/workflows/__packaging-codescanning-config-inputs-js.yml +++ b/.github/workflows/__packaging-codescanning-config-inputs-js.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: 'PR Check - Packaging: Config and input passed to the CLI' diff --git a/.github/workflows/__packaging-config-inputs-js.yml b/.github/workflows/__packaging-config-inputs-js.yml index 994c09a0d..6481c3ad3 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: 'PR Check - Packaging: Config and input' diff --git a/.github/workflows/__packaging-config-js.yml b/.github/workflows/__packaging-config-js.yml index 70013f6f8..1318f822e 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: 'PR Check - Packaging: Config file' diff --git a/.github/workflows/__packaging-inputs-js.yml b/.github/workflows/__packaging-inputs-js.yml index 26485c1c9..8f5775621 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: 'PR Check - Packaging: Action input' diff --git a/.github/workflows/__remote-config.yml b/.github/workflows/__remote-config.yml index e699528ad..a126c041c 100644 --- a/.github/workflows/__remote-config.yml +++ b/.github/workflows/__remote-config.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Remote config file diff --git a/.github/workflows/__rubocop-multi-language.yml b/.github/workflows/__rubocop-multi-language.yml index bdbb130a6..3e9935c0b 100644 --- a/.github/workflows/__rubocop-multi-language.yml +++ b/.github/workflows/__rubocop-multi-language.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - RuboCop multi-language diff --git a/.github/workflows/__ruby.yml b/.github/workflows/__ruby.yml index d0bdacb24..abf5b5519 100644 --- a/.github/workflows/__ruby.yml +++ b/.github/workflows/__ruby.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Ruby analysis diff --git a/.github/workflows/__split-workflow.yml b/.github/workflows/__split-workflow.yml index b13241887..8ebe390a3 100644 --- a/.github/workflows/__split-workflow.yml +++ b/.github/workflows/__split-workflow.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Split workflow diff --git a/.github/workflows/__submit-sarif-failure.yml b/.github/workflows/__submit-sarif-failure.yml index 8b50134b3..e778841a6 100644 --- a/.github/workflows/__submit-sarif-failure.yml +++ b/.github/workflows/__submit-sarif-failure.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Submit SARIF after failure diff --git a/.github/workflows/__swift-custom-build.yml b/.github/workflows/__swift-custom-build.yml index 194c44512..8a6b8cb3a 100644 --- a/.github/workflows/__swift-custom-build.yml +++ b/.github/workflows/__swift-custom-build.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Swift analysis using a custom build command diff --git a/.github/workflows/__test-autobuild-working-dir.yml b/.github/workflows/__test-autobuild-working-dir.yml index 9247a5da2..a230e4d57 100644 --- a/.github/workflows/__test-autobuild-working-dir.yml +++ b/.github/workflows/__test-autobuild-working-dir.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Autobuild working directory diff --git a/.github/workflows/__test-local-codeql.yml b/.github/workflows/__test-local-codeql.yml index 5aead2a2f..c0e7135ea 100644 --- a/.github/workflows/__test-local-codeql.yml +++ b/.github/workflows/__test-local-codeql.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Local CodeQL bundle diff --git a/.github/workflows/__test-proxy.yml b/.github/workflows/__test-proxy.yml index ed8dc3897..ec34b9f29 100644 --- a/.github/workflows/__test-proxy.yml +++ b/.github/workflows/__test-proxy.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Proxy test diff --git a/.github/workflows/__unset-environment.yml b/.github/workflows/__unset-environment.yml index 9c34631e4..3cfaebfb1 100644 --- a/.github/workflows/__unset-environment.yml +++ b/.github/workflows/__unset-environment.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Test unsetting environment variables diff --git a/.github/workflows/__upload-ref-sha-input.yml b/.github/workflows/__upload-ref-sha-input.yml index 0f708b389..3c3580a0d 100644 --- a/.github/workflows/__upload-ref-sha-input.yml +++ b/.github/workflows/__upload-ref-sha-input.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: "PR Check - Upload-sarif: 'ref' and 'sha' from inputs" diff --git a/.github/workflows/__with-checkout-path.yml b/.github/workflows/__with-checkout-path.yml index 17bfb1add..9ada2e06a 100644 --- a/.github/workflows/__with-checkout-path.yml +++ b/.github/workflows/__with-checkout-path.yml @@ -1,6 +1,6 @@ # Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. name: PR Check - Use a custom `checkout_path` diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index af376db3e..824837cc6 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -52,6 +52,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + # When updating this, update the autogenerated code header in `sync.py` too. pip install ruamel.yaml==0.17.31 # Ensure the generated PR check workflows are up to date. diff --git a/pr-checks/sync.py b/pr-checks/sync.py index 5c0c32246..f59f848e5 100644 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -21,10 +21,11 @@ "nightly-latest" ] - +# When updating the ruamel.yaml version here, update the PR check in +# `.github/workflows/pr-checks.yml` too. header = """# Warning: This file is generated automatically, and should not be modified. # Instead, please modify the template in the pr-checks directory and run: -# (cd pr-checks; pip install ruamel.yaml && python3 sync.py) +# (cd pr-checks; pip install ruamel.yaml@0.17.31 && python3 sync.py) # to regenerate this file. """