From f3d6969dcf8207b0748f1b319faeea16dcf8e77b Mon Sep 17 00:00:00 2001 From: Aleksandr Kadykov Date: Thu, 21 Nov 2024 13:05:02 +0100 Subject: [PATCH 1/2] Add shellchek dependency in pre-commit hooks --- .pre-commit-hooks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 419ade51b..4b4b57919 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -7,6 +7,7 @@ files: ^\.github/workflows/ entry: actionlint minimum_pre_commit_version: 3.0.0 + additional_dependencies: ["shellcheck"] - id: actionlint-docker name: Lint GitHub Actions workflow files description: Runs actionlint Docker image to lint GitHub Actions workflow files From 01ae094fa0747615bc9cdeac224dc0900b36d8c3 Mon Sep 17 00:00:00 2001 From: Aleksandr Kadykov Date: Thu, 21 Nov 2024 13:44:55 +0100 Subject: [PATCH 2/2] Use an existing go package for shellcheck installation in pre-commit --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 4b4b57919..eceb3c54d 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -7,7 +7,7 @@ files: ^\.github/workflows/ entry: actionlint minimum_pre_commit_version: 3.0.0 - additional_dependencies: ["shellcheck"] + additional_dependencies: ["github.com/wasilibs/go-shellcheck/cmd/shellcheck@latest"] - id: actionlint-docker name: Lint GitHub Actions workflow files description: Runs actionlint Docker image to lint GitHub Actions workflow files