| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
A byte-for-byte fixture mismatch risks CI test failures, while dirty-checkout handling and a Node 20-incompatible entry-point guard can silently bypass required checks.
4 open issuesAnd 38 more.
What changed in this PRThis PR standardizes YAML formatting across the CodeQL Action repository and adds CI enforcement, extending the TypeScript CI-script migration from #4064.
Changes:
| File | Description |
|---|---|
| upload-sarif/action.yml | Normalizes YAML quoting. |
| tsconfig.json | Excludes the Prettier configuration from compilation. |
| tests/multi-language-repo/codeql-qlpacks/python-qlpack/qlpack.yml | Adds a final newline. |
| tests/multi-language-repo/codeql-qlpacks/javascript-qlpack/qlpack.yml | Adds a final newline. |
| tests/multi-language-repo/codeql-qlpacks/java-qlpack/qlpack.yml | Adds a final newline. |
| tests/multi-language-repo/codeql-qlpacks/go-qlpack/qlpack.yml | Adds a final newline. |
| tests/multi-language-repo/codeql-qlpacks/csharp-qlpack/qlpack.yml | Adds a final newline. |
| tests/multi-language-repo/codeql-qlpacks/cpp-qlpack/qlpack.yml | Adds a final newline. |
| tests/multi-language-repo/codeql-qlpacks/complex-python-qlpack/qlpack.yml | Adds a final newline. |
| tests/multi-language-repo/codeql-qlpacks/complex-javascript-qlpack/qlpack.yml | Adds a final newline. |
| tests/multi-language-repo/.github/codeql/custom-queries.yml | Aligns comments with query entries. |
| tests/multi-language-repo/.github/codeql/codeql-config-query-filters3.yml | Normalizes indentation and spacing. |
| tests/multi-language-repo/.github/codeql/codeql-config-query-filters2.yml | Normalizes filter indentation. |
| tests/multi-language-repo/.github/codeql/codeql-config-query-filters1.yml | Normalizes filter indentation. |
| src/testdata/pr-diff-range.yml | Formats the diff-range fixture. |
| setup-codeql/action.yml | Normalizes YAML quoting. |
| resolve-environment/action.yml | Normalizes YAML quoting. |
| prettier.config.mts | Sets the formatter’s print width. |
| pr-checks/update-release-branch.ts | Imports extracted command helpers. |
| pr-checks/sync.ts | Uses double quotes in generated YAML. |
| pr-checks/config.ts | Exports shared repository paths. |
| pr-checks/command.ts | Houses shared command and Git helpers. |
| pr-checks/checks/upload-sarif.yml | Normalizes input quoting. |
| pr-checks/checks/upload-ref-sha-input.yml | Normalizes input quoting. |
| pr-checks/checks/overlay-init-fallback.yml | Normalizes inline-comment spacing. |
| pr-checks/checks/init-with-registries.yml | Normalizes block-scalar indentation. |
| pr-checks/checks/analyze-ref-input.yml | Normalizes input quoting. |
| pr-checks/check-unchanged.ts | Adds shared JavaScript and YAML verification. |
| package.json | Adds Prettier and the formatting command. |
| package-lock.json | Records the Prettier dependency update. |
| init/action.yml | Normalizes YAML quoting. |
| eslint.config.mjs | Excludes the Prettier configuration from linting. |
| autobuild/action.yml | Normalizes YAML quoting. |
| action.yml | Normalizes stub-action quoting. |
| .vscode/settings.json | Configures YAML formatting in VS Code. |
| .github/workflows/update-supported-enterprise-server-versions.yml | Normalizes cache-input quoting. |
| .github/workflows/update-release-branch.yml | Normalizes indentation and comment spacing. |
| .github/workflows/update-bundle.yml | Normalizes YAML quoting. |
| .github/workflows/test-codeql-bundle-all.yml | Normalizes indentation and quoting. |
| .github/workflows/script/check-js.sh | Removes the replaced shell checker. |
| .github/workflows/rebuild.yml | Normalizes cache-input quoting. |
| .github/workflows/query-filters.yml | Normalizes indentation, quoting, and spacing. |
| .github/workflows/python312-windows.yml | Normalizes indentation and schedule quoting. |
| .github/workflows/publish-immutable-action.yml | Normalizes name and tag-pattern quoting. |
| .github/workflows/pr-checks.yml | Invokes the TypeScript checker for both formats. |
| .github/workflows/post-release-mergeback.yml | Normalizes quoting and comment spacing. |
| .github/workflows/codescanning-config-cli.yml | Normalizes indentation and quoting. |
| .github/workflows/codeql.yml | Normalizes indentation and matrix formatting. |
| .github/ISSUE_TEMPLATE/config.yml | Removes trailing whitespace. |
| .github/actions/release-initialise/action.yml | Normalizes quoting and spacing. |
| .github/actions/release-branches/action.yml | Normalizes metadata quoting. |
| .github/actions/query-filter-test/action.yml | Removes extra input spacing. |
| .github/actions/check-codescanning-config/action.yml | Normalizes indentation and quoting. |
| .editorconfig | Adds a YAML indentation section. |
Review effort: Balanced (auto)
Sorry, something went wrong.
| const yamlStr = yaml.stringify(workflowDoc, { | ||
| aliasDuplicateObjects: false, | ||
| singleQuote: true, | ||
| singleQuote: false, | ||
| lineWidth: 0, | ||
| }); |
There was a problem hiding this comment.
Is it worth running this through prettier.format?
Sorry, something went wrong.
There was a problem hiding this comment.
Maybe, but as far as I can tell the formatting that comes out of here and the prettier expectations are fairly well aligned. We could look at doing this if we find that it's a problem in the future.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Improves some YAML-related project configuration, adds prettier as a dev dependency along with a command to use it to format YAML files in the repository. Also adds a CI check to ensure that the YAML files are correctly formatted, which is done with a cherry-picked change from #4064 that converts check-js.sh to TypeScript that is then extended to be able to run checks for either JS or YAML.
Notes for reviewers