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
docs: example of how to pre-install actionlint when using pre-commit #268
Conversation
I'm actually not a user of pre-commit (this file was added by community). Would you explain what this change does? I'm not understanding why the 'example' thing is necessary here. |
@gilesw, is this change intended to automatically install the executable? If so, that'd be awesome, as the current pre-commit hook is a bit of a burden in its current state. |
Now that pre-commit 3.0 added support for bootstrapping the While it'd be great to have this, pre-commit won't build, as it tries to build everything with Unfortunately, it means that Build Error
You can, however, use a Local Hook, with Here's an example (I assume this is what the Giles was getting at): # .pre-commit-config.yaml
repos:
- repo: local
hooks:
- id: actionlint
name: Lint GitHub Actions workflow files
description: Runs actionlint to lint GitHub Actions workflow files
entry: actionlint
language: golang
language_version: "1.19"
additional_dependencies: [github.com/rhysd/actionlint/cmd/actionlint@v1.6.23]
types: ["yaml"]
files: "^.github/workflows/" |
@rhysd I copy and pasted that community file thinking it was how to use it with pre-commit as the official way, as others might do. I now use my modified stanza as it installs actionlint automatically. Works a treat in github actions. Possibly the stanza needs to be part of the Readme.md. |
Following the workaround of @antdking, I created a mirror repo that auto-updates the version and uses |
Closing this PR in favor of #301. Now |
No description provided.