Skip to content
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

Add GitHub Actions workflow for linting YAML files #11493

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
chore(docker): specify version for rhysd/actionlint to ensure stabi…
…lity

- Updated Docker command in GitHub workflow to use `rhysd/actionlint:1.7.3`
  instead of `latest` to maintain workflow stability.
- Specifying a version tag to avoid potential unexpected breaks due to changes
  in the latest version of actionlint.
  • Loading branch information
KenEkanem committed Oct 30, 2024
commit 420b4a8a890296298d329431cad3bbf09e860e9a
2 changes: 1 addition & 1 deletion .github/workflows/lint-workflow-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Lint GitHub Workflow YAML Files with Docker
run: |
docker run --rm -v "${{ github.workspace }}:/repo" --workdir /repo rhysd/actionlint:latest -color .github/workflows/*.yml .github/workflows/*.yaml
docker run --rm -v "${{ github.workspace }}:/repo" --workdir /repo rhysd/actionlint:1.7.3 -color .github/workflows/*.yml .github/workflows/*.yaml
Copy link
Member

Choose a reason for hiding this comment

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

Could you move the version number to a variable so it's easier to catch?


- name: Reminder to Address Linting Errors
if: failure()
Expand Down