Skip to content

Add YAML linting with yamllint - #25

Merged
davorg merged 6 commits into
mainfrom
copilot/add-yaml-lint-mechanism
Feb 11, 2026
Merged

Add YAML linting with yamllint#25
davorg merged 6 commits into
mainfrom
copilot/add-yaml-lint-mechanism

Conversation

CopilotAI commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

Adds automated YAML linting to enforce consistent formatting and catch syntax errors in workflow files.

Implementation

  • .yamllint - Configuration tailored for GitHub Actions (120 char lines, allows on/off truthy values, disables document-start requirement)
  • .github/workflows/yaml-lint.yml - Reusable workflow running yamllint 1.38.0
  • .github/workflows/ci.yml - Triggers on YAML file changes via path filters
  • Permissions - Explicit blocks added (contents: read for checkout, empty for caller)

Example Usage

Other repositories can consume the reusable workflow:

jobs:
yaml-lint:
uses: PerlToolsTeam/github_workflows/.github/workflows/yaml-lint.yml@main

Cleanup

Removed trailing empty lines from existing workflow/action files to satisfy linter.

Original prompt

This section details on the original issue you should resolve

<issue_title>Lint the YAML</issue_title>
<issue_description>Add a mechanism to lint the YAML files.

Add a workflow to run this on a commit or PR that changes any of the YAML files.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

CopilotAIand others added 5 commits February 11, 2026 17:30
Co-authored-by: davorg <24642+davorg@users.noreply.github.com>
Co-authored-by: davorg <24642+davorg@users.noreply.github.com>
Co-authored-by: davorg <24642+davorg@users.noreply.github.com>
Co-authored-by: davorg <24642+davorg@users.noreply.github.com>
Co-authored-by: davorg <24642+davorg@users.noreply.github.com>
CopilotAI changed the title [WIP] Add mechanism to lint YAML filesAdd YAML linting with yamllintFeb 11, 2026
CopilotAI requested a review from davorgFebruary 11, 2026 17:34
@davorg
davorg marked this pull request as ready for review February 11, 2026 17:36
@davorg
davorg merged commit 95dff7a into mainFeb 11, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lint the YAML

2 participants

@davorg