diff --git a/hk.pkl b/hk.pkl index d85ec8c..45f9b96 100644 --- a/hk.pkl +++ b/hk.pkl @@ -13,6 +13,15 @@ local linters = new Mapping { effect = "write" } } + // lints GitHub Actions workflows (jdx/jactionlint, a maintained actionlint fork) + ["jactionlint"] { + glob = List(".github/workflows/*.yml", ".github/workflows/*.yaml") + batch = true + check = new CommandSpec { + command = "jactionlint {{ files }}" + effect = "read" + } + } } hooks { diff --git a/mise.lock b/mise.lock index def04e7..95331a1 100644 --- a/mise.lock +++ b/mise.lock @@ -176,6 +176,53 @@ checksum = "sha256:9d3063f0eadb316415dc2aaea51608f436eb6ffe44e00c2e460294c66f269 url = "https://github.com/jdx/hk/releases/download/v2.5.0/hk-x86_64-pc-windows-msvc.zip" signer = "sigstore-oidc:https://github.com/jdx/hk/.github/workflows/release.yml" +[[tools.jactionlint]] +version = "1.8.2" +backend = "github:jdx/jactionlint" +specifiers = ["latest"] + +[tools.jactionlint."platforms.linux-arm64"] +checksum = "sha256:7d618749dbddd762a14bd491ea97bc4f6599626f830a11edc6c6522ead8bcd05" +url = "https://github.com/jdx/jactionlint/releases/download/v1.8.2/jactionlint_1.8.2_linux_arm64.tar.gz" +url_api = "https://api.github.com/repos/jdx/jactionlint/releases/assets/611338576" +provenance = "github-attestations" + +[tools.jactionlint."platforms.linux-arm64-musl"] +checksum = "sha256:7d618749dbddd762a14bd491ea97bc4f6599626f830a11edc6c6522ead8bcd05" +url = "https://github.com/jdx/jactionlint/releases/download/v1.8.2/jactionlint_1.8.2_linux_arm64.tar.gz" +url_api = "https://api.github.com/repos/jdx/jactionlint/releases/assets/611338576" +provenance = "github-attestations" + +[tools.jactionlint."platforms.linux-x64"] +checksum = "sha256:6533bd8047fc012a3f66238d84f65cacdac669da00b9f6cf042c1734c252bc93" +url = "https://github.com/jdx/jactionlint/releases/download/v1.8.2/jactionlint_1.8.2_linux_amd64.tar.gz" +url_api = "https://api.github.com/repos/jdx/jactionlint/releases/assets/611338580" +provenance = "github-attestations" + +[tools.jactionlint."platforms.linux-x64-musl"] +checksum = "sha256:6533bd8047fc012a3f66238d84f65cacdac669da00b9f6cf042c1734c252bc93" +url = "https://github.com/jdx/jactionlint/releases/download/v1.8.2/jactionlint_1.8.2_linux_amd64.tar.gz" +url_api = "https://api.github.com/repos/jdx/jactionlint/releases/assets/611338580" +provenance = "github-attestations" + +[tools.jactionlint."platforms.macos-arm64"] +checksum = "sha256:de9eb05af3cde409dc0b37fe2fd6a21b875a575374e7b26c02d45a7086645c28" +url = "https://github.com/jdx/jactionlint/releases/download/v1.8.2/jactionlint_1.8.2_darwin_arm64.tar.gz" +url_api = "https://api.github.com/repos/jdx/jactionlint/releases/assets/611338605" +provenance = "github-attestations" + +[tools.jactionlint."platforms.macos-x64"] +checksum = "sha256:42790b2565759b7f4a81696fb9034b2060f97f551d2ced54cf722c9de9abe6b2" +url = "https://github.com/jdx/jactionlint/releases/download/v1.8.2/jactionlint_1.8.2_darwin_amd64.tar.gz" +url_api = "https://api.github.com/repos/jdx/jactionlint/releases/assets/611338604" +provenance = "github-attestations" + +[tools.jactionlint."platforms.windows-x64"] +checksum = "sha256:fd7be539cd3276d5178f85ef140c1bb52395b1ec1f59b1585050e1be3b0b194b" +url = "https://github.com/jdx/jactionlint/releases/download/v1.8.2/jactionlint_1.8.2_windows_amd64.zip" +url_api = "https://api.github.com/repos/jdx/jactionlint/releases/assets/611338616" +provenance = "github-attestations" + [[tools.pkl]] version = "0.32.1" backend = "aqua:apple/pkl" diff --git a/mise.toml b/mise.toml index 2d11617..48d2b98 100644 --- a/mise.toml +++ b/mise.toml @@ -4,6 +4,7 @@ cargo-release = "1" hk = { version = "latest", minimum_release_age = "0s" } cargo-binstall = "latest" pkl = "latest" +jactionlint = "latest" [tasks.changelog] description = "Generate changelog"