Declare workflow YAML as LF and validate line endings in CI#376
Merged
Conversation
Dependabot and GitHub Actions rewrite workflow YAML with LF, so declare
LF for .github/workflows/*.{yml,yaml} in .editorconfig to keep it
consistent instead of mixed. Non-workflow YAML stays CRLF. git leaves
endings alone (* -text); a new editorconfig-checker step in the lint job
enforces it in CI, configured by .editorconfig-checker.json.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Standardizes GitHub Actions workflow YAML line endings to LF to prevent repeated churn from Dependabot / GitHub Actions rewrites, and adds CI enforcement to keep workflow EOLs consistent.
Changes:
- Add an
.editorconfigoverride pinning.github/workflows/*.{yml,yaml}toend_of_line = lfwhile keeping other YAML as CRLF. - Convert existing workflow files to LF (EOL-only) and document the workflow-YAML LF exception in
AGENTS.md. - Add an
editorconfig-checkerconfig and a new lint step to validate line endings in CI.
Reviewed changes
Copilot reviewed 4 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| AGENTS.md | Documents the workflow-YAML LF exception in the repo’s line-ending guidance. |
| .editorconfig | Pins workflow YAML to LF while leaving non-workflow YAML as CRLF. |
| .editorconfig-checker.json | Adds editorconfig-checker configuration intended to make CI enforcement EOL-focused. |
| .github/workflows/validate-task.yml | Adds a new lint step running editorconfig-checker (plus EOL-only conversion). |
| .github/workflows/test-pull-request.yml | EOL-only conversion to LF for workflow consistency. |
| .github/workflows/publish-release.yml | EOL-only conversion to LF for workflow consistency. |
| .github/workflows/merge-bot-pull-request.yml | EOL-only conversion to LF for workflow consistency. |
| .github/workflows/build-release-task.yml | EOL-only conversion to LF for workflow consistency. |
This was referenced Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependabot and GitHub Actions rewrite workflow YAML with LF, so this declares LF for
.github/workflows/*.{yml,yaml}in.editorconfigto keep it consistent instead of mixed on every bump. Non-workflow YAML stays CRLF..editorconfig: add the[.github/workflows/*.{yml,yaml}] end_of_line = lfsection..editorconfig-checker.json(EOL-only checker config).Check line endings step(editorconfig-checker) to the lint job, right after actionlint.AGENTS.md: note the workflow-YAML LF exception.git still leaves endings alone (
* -text);.editorconfigplus the CI editorconfig-checker step enforce the LF pin. Verified locally: editorconfig-checker clean, andgit diff --ignore-cr-at-eolon the converted workflows is empty.