Skip to content

feat: lint github actions workflows #13552

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

Merged
merged 4 commits into from
Jun 26, 2024
Merged

feat: lint github actions workflows #13552

merged 4 commits into from
Jun 26, 2024

Conversation

dannykopping
Copy link
Contributor

Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
@github-actions github-actions bot added the stale This issue is like stale bread. label Jun 20, 2024
@@ -191,6 +191,12 @@ jobs:
run: |
make --output-sync=line -j lint

- name: Check workflow files
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/7fdc9630cc360ea1a469eed64ac6d78caeda1234/scripts/download-actionlint.bash)
Copy link
Member

@matifali matifali Jun 20, 2024

Choose a reason for hiding this comment

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

Suggested change
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/7fdc9630cc360ea1a469eed64ac6d78caeda1234/scripts/download-actionlint.bash)
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.7.1

This will make it easier to bump versions while pinning the version.
ref: https://github.com/rhysd/actionlint/blob/main/docs/install.md#download-script

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea 👍 I've pinned to 1.6.22 which is the version to which the current commit is pointing.

Copy link
Member

Choose a reason for hiding this comment

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

I suggest we pin to latest availbale just to be sure that linter supports any newly added syntax.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we do so, we should update code-server too. See https://github.com/coder/code-server/blob/main/.github/workflows/build.yaml#L142-L152.

@kylecarbs any objections?

@matifali matifali removed the stale This issue is like stale bread. label Jun 20, 2024
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
@dannykopping dannykopping merged commit d5d8b91 into main Jun 26, 2024
30 checks passed
@dannykopping dannykopping deleted the dk/lint-actions branch June 26, 2024 08:28
@github-actions github-actions bot locked and limited conversation to collaborators Jun 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci: set up a github workflows linter
2 participants