Skip to content

New yaml linter for GHA #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/composer-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: sdesbure/yaml-lint-action@v2
with:
files: .github/workflows/*.yml
- name: Lint YAML files
Copy link
Preview

Copilot AI May 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider adding a comment or documentation note that explains the purpose of setting DEFAULT_WORKSPACE, so that future maintainers are clear why this environment variable is explicitly declared.

Suggested change
uses: github/super-linter@v5
uses: github/super-linter@v5
# The DEFAULT_WORKSPACE environment variable specifies the workspace directory
# for the super-linter action. It ensures the linter operates within the correct
# context of the repository.

Copilot uses AI. Check for mistakes.

uses: github/super-linter@v5
env:
Copy link
Preview

Copilot AI May 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching to GitHub Super Linter may enable additional lint checks beyond YAML files. If only YAML linting is intended, consider adjusting the Super Linter configuration to restrict linting to YAML files.

Suggested change
VALIDATE_YAML: true
VALIDATE_YAML: true
VALIDATE_ALL_CODEBASE: false

Copilot uses AI. Check for mistakes.

VALIDATE_YAML: true
DEFAULT_WORKSPACE: ${{ github.workspace }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading