From 7963ee31a2d4a91437cfcf9eb313b40be8695501 Mon Sep 17 00:00:00 2001 From: Hironori Takahashi Date: Tue, 1 Dec 2026 20:33:36 +0900 Subject: [PATCH] ci: adopt h13/.github v3.0.0 pins and lock the toolchain Bump workflow pins to v3.0.0, enable the mise lockfile (checksum-verified toolchain installs), and keep pre-commit auto-fixers away from generated lockfiles. php is excluded from the lock: the vfox php plugin cannot resolve checksums (mise lock fails in its PreInstall hook), so only node is locked; php installs exactly as before. --- .github/workflows/alps.yml | 2 +- .mise.toml | 3 +++ .prettierignore | 4 ++++ mise.lock | 36 ++++++++++++++++++++++++++++++++++++ typos.toml | 6 ++++++ 5 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 .prettierignore create mode 100644 mise.lock create mode 100644 typos.toml diff --git a/.github/workflows/alps.yml b/.github/workflows/alps.yml index 9ace83c..fef683d 100644 --- a/.github/workflows/alps.yml +++ b/.github/workflows/alps.yml @@ -16,7 +16,7 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: h13/.github/actions/setup-toolchain@146f7b04b4bfbfd7bf935a30879f2ac18dfc4a57 # v1.2.0 + - uses: h13/.github/actions/setup-toolchain@1e41d76a661e2835b0cf9df2c85d588f9f0308f7 # v3.0.0 - run: npm install -g @alps-asd/app-state-diagram - name: Generate ALPS diagram run: | diff --git a/.mise.toml b/.mise.toml index f2b2cee..d9ae0e6 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,3 +1,6 @@ +[settings] +lockfile = true + [tools] php = "8.6.0" node = "26.13.1" diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..4fa5181 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,4 @@ +# Generated, integrity-checked files: formatters must not rewrite them +# (checksummed in mise.lock; oxfmt reads this file by default) +.mise/ +*.lock diff --git a/mise.lock b/mise.lock new file mode 100644 index 0000000..69ae066 --- /dev/null +++ b/mise.lock @@ -0,0 +1,36 @@ +# @generated - this file is auto-generated by `mise lock` https://mise.jdx.dev/dev-tools/mise-lock.html + +lockfile_version = 5 + +[[tools.node]] +version = "26.13.1" +backend = "core:node" +specifiers = ["26.13.1"] + +[tools.node."platforms.linux-arm64"] +checksum = "sha256:80a330b35415382878df18d41afbd106ea89bfb3be0087d6608e289a14c5cc7d" +url = "https://nodejs.org/dist/v26.13.1/node-v26.13.1-linux-arm64.tar.gz" + +[tools.node."platforms.linux-arm64-musl"] +checksum = "sha256:42684e7f1830ef9eaadd040672cba41bbaff9549d834600699f92ee1ee5b1fb1" +url = "https://unofficial-builds.nodejs.org/download/release/v26.13.1/node-v26.13.1-linux-arm64-musl.tar.gz" + +[tools.node."platforms.linux-x64"] +checksum = "sha256:518674de2b621728a5e4486f5fb3b7d2900bb3cc4aa97969edaa463db99f9778" +url = "https://nodejs.org/dist/v26.13.1/node-v26.13.1-linux-x64.tar.gz" + +[tools.node."platforms.linux-x64-musl"] +checksum = "sha256:04bf9ed3e32ea139c9af52f6dd06879ff6f8880555a0aa1183ef2d156c0e02d3" +url = "https://unofficial-builds.nodejs.org/download/release/v26.13.1/node-v26.13.1-linux-x64-musl.tar.gz" + +[tools.node."platforms.macos-arm64"] +checksum = "sha256:aec2514ea1ceb2ba52455e9ec65986f6749a06dd759e5db2a72e6889668c9735" +url = "https://nodejs.org/dist/v26.13.1/node-v26.13.1-darwin-arm64.tar.gz" + +[tools.node."platforms.macos-x64"] +checksum = "sha256:82bb96078a24ca50b9c9a38f2379e6be6d87171fcd400fc14c8934b3bce96e2f" +url = "https://nodejs.org/dist/v26.13.1/node-v26.13.1-darwin-x64.tar.gz" + +[tools.node."platforms.windows-x64"] +checksum = "sha256:e2edda75bfb089654705cf65a13b58933bfd5f57148e8ebda916f58a2474f1f7" +url = "https://nodejs.org/dist/v26.13.1/node-v26.13.1-win-x64.zip" diff --git a/typos.toml b/typos.toml new file mode 100644 index 0000000..33a419f --- /dev/null +++ b/typos.toml @@ -0,0 +1,6 @@ +# Keep spell-fixers away from generated, integrity-checked files. +# The pre-commit hook runs `typos --force-exclude -w`, which would otherwise +# "correct" real package names inside lockfiles (e.g. devlop -> develop) and +# break the checksums recorded in mise.lock. +[files] +extend-exclude = ["*.lock", ".mise/"]