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

Configure pre-commit.ci to skip the actionlint-docker hook #41

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

diazona
Copy link
Owner

@diazona diazona commented Jul 24, 2023

Apparently the runners that pre-commit.ci uses don't have Docker installed, so Docker-based hooks will fail on that platform. Accordingly I'm setting the actionlint-docker hook to be skipped.

Technically this allows people to bypass the linting of Github Actions configuration and introduce an invalid workflow, but I don't think we have to worry about that too much. If there are syntax errors in the workflow configuration, Github might catch them, and otherwise someone should notice sooner or later when running pre-commit locally.

We could also start using the lite version of pre-commit.ci which runs as a Github Action, and that would allow us to use Docker hooks, but I don't think that's really necessary at this point.

Apparently the runners that pre-commit.ci uses don't have Docker
installed, so Docker-based hooks will fail on that platform. Accordingly
I'm setting the actionlint-docker hook to be skipped.

Technically this allows people to bypass the linting of Github Actions
configuration and introduce an invalid workflow, but I don't think we
have to worry about that too much. If there are syntax errors in
the workflow configuration, Github might catch them, and otherwise
someone should notice sooner or later when running pre-commit locally.

We could also start using the lite version of pre-commit.ci which runs
as a Github Action, and that would allow us to use Docker hooks, but I
don't think that's really necessary at this point.
@diazona diazona added this to the Initial release milestone Jul 24, 2023
@diazona diazona assigned diazona and sjlongland and unassigned diazona Jul 24, 2023
@diazona diazona requested a review from sjlongland July 24, 2023 08:30
@sjlongland sjlongland merged commit dffb548 into main Jul 24, 2023
@sjlongland sjlongland deleted the fix-pre-commit-ci/1/dev branch July 24, 2023 21:55
Sign up for free to 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.

2 participants