From e9d5cc403323ec22bcd1959c98f223233e5495d0 Mon Sep 17 00:00:00 2001 From: Kyosuke Fujimoto Date: Wed, 29 Apr 2026 20:51:01 +0900 Subject: [PATCH 1/5] Update workflows to use latest action versions --- .github/workflows/build.yml | 6 +++--- .github/workflows/gh-pages.yml | 8 ++++---- .github/workflows/release.yml | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 881a7de..f0582e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: outputs: msrv: ${{ steps.get-msrv.outputs.msrv }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6.0.2 - name: Get MSRV id: get-msrv run: | @@ -42,12 +42,12 @@ jobs: versions: ${{ needs.prepare.outputs.msrv }} runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6.0.2 - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.versions }} components: rustfmt, clippy - - uses: Swatinem/rust-cache@v2 + - uses: Swatinem/rust-cache@v2.9.1 - name: Version run: | rustc --version diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 85cca15..5abdb28 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -22,9 +22,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6.0.2 - name: Setup Pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v6.0.0 - name: Install mdbook working-directory: docs run: | @@ -34,7 +34,7 @@ jobs: run: | ./mdbook build - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v5.0.0 with: path: docs/book @@ -47,4 +47,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v5.0.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0485be8..199f3eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,11 +28,11 @@ jobs: runs-on: ${{ matrix.targets.os }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6.0.2 - name: Setup run: rustup target add ${{ matrix.targets.target }} - name: Build - uses: houseabsolute/actions-rust-cross@v1.0.0 + uses: houseabsolute/actions-rust-cross@v1.0.6 with: command: build target: ${{ matrix.targets.target }} @@ -44,7 +44,7 @@ jobs: - name: Checksum run: shasum -a 256 stu-${{ env.RELEASE_VERSION }}-${{ matrix.targets.target }}.tar.gz - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7.0.1 with: name: release-${{ matrix.targets.target }} path: stu-${{ env.RELEASE_VERSION }}-${{ matrix.targets.target }}.tar.gz @@ -56,7 +56,7 @@ jobs: needs: build steps: - name: Download artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8.0.1 with: path: releases pattern: release-* @@ -64,7 +64,7 @@ jobs: - name: Checksum run: sha256sum releases/* > ./releases/checksum.txt - name: Create Draft Release - uses: softprops/action-gh-release@v2.0.4 + uses: softprops/action-gh-release@v3.0.0 with: draft: true generate_release_notes: true From 718538ff6ce88bca9b8850167c69213834ee2114 Mon Sep 17 00:00:00 2001 From: Kyosuke Fujimoto Date: Wed, 29 Apr 2026 20:51:56 +0900 Subject: [PATCH 2/5] Update workflows to use specific commit versions for actions --- .github/workflows/build.yml | 8 ++++---- .github/workflows/gh-pages.yml | 8 ++++---- .github/workflows/release.yml | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f0582e7..b725f5c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: outputs: msrv: ${{ steps.get-msrv.outputs.msrv }} steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Get MSRV id: get-msrv run: | @@ -42,12 +42,12 @@ jobs: versions: ${{ needs.prepare.outputs.msrv }} runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v6.0.2 - - uses: dtolnay/rust-toolchain@master + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # latest commit as of 2026-03-28 with: toolchain: ${{ matrix.versions }} components: rustfmt, clippy - - uses: Swatinem/rust-cache@v2.9.1 + - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: Version run: | rustc --version diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5abdb28..2068308 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -22,9 +22,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Pages - uses: actions/configure-pages@v6.0.0 + uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 - name: Install mdbook working-directory: docs run: | @@ -34,7 +34,7 @@ jobs: run: | ./mdbook build - name: Upload artifact - uses: actions/upload-pages-artifact@v5.0.0 + uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: path: docs/book @@ -47,4 +47,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v5.0.0 + uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 199f3eb..14f315c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,11 +28,11 @@ jobs: runs-on: ${{ matrix.targets.os }} steps: - name: Checkout - uses: actions/checkout@v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup run: rustup target add ${{ matrix.targets.target }} - name: Build - uses: houseabsolute/actions-rust-cross@v1.0.6 + uses: houseabsolute/actions-rust-cross@a8cc74d61047fa553b4e908b4b10e70029f00ca6 # v1.0.6 with: command: build target: ${{ matrix.targets.target }} @@ -44,7 +44,7 @@ jobs: - name: Checksum run: shasum -a 256 stu-${{ env.RELEASE_VERSION }}-${{ matrix.targets.target }}.tar.gz - name: Upload artifact - uses: actions/upload-artifact@v7.0.1 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: release-${{ matrix.targets.target }} path: stu-${{ env.RELEASE_VERSION }}-${{ matrix.targets.target }}.tar.gz @@ -56,7 +56,7 @@ jobs: needs: build steps: - name: Download artifact - uses: actions/download-artifact@v8.0.1 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: path: releases pattern: release-* @@ -64,7 +64,7 @@ jobs: - name: Checksum run: sha256sum releases/* > ./releases/checksum.txt - name: Create Draft Release - uses: softprops/action-gh-release@v3.0.0 + uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0 with: draft: true generate_release_notes: true From c42e06cfc45082655f9820f889ca2a0d37245b2f Mon Sep 17 00:00:00 2001 From: Kyosuke Fujimoto Date: Wed, 29 Apr 2026 20:53:41 +0900 Subject: [PATCH 3/5] Add names to steps --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b725f5c..8cc4e4b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,8 @@ jobs: outputs: msrv: ${{ steps.get-msrv.outputs.msrv }} steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Get MSRV id: get-msrv run: | @@ -42,12 +43,15 @@ jobs: versions: ${{ needs.prepare.outputs.msrv }} runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # latest commit as of 2026-03-28 + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Setup Rust + uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # latest commit as of 2026-03-28 with: toolchain: ${{ matrix.versions }} components: rustfmt, clippy - - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 + - name: Cache + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: Version run: | rustc --version From d105510ed6a6546321778efd77063171f49674c7 Mon Sep 17 00:00:00 2001 From: Kyosuke Fujimoto Date: Wed, 29 Apr 2026 20:54:12 +0900 Subject: [PATCH 4/5] Add workflow for pinact --- .github/workflows/pinact.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pinact.yml diff --git a/.github/workflows/pinact.yml b/.github/workflows/pinact.yml new file mode 100644 index 0000000..f3fcb04 --- /dev/null +++ b/.github/workflows/pinact.yml @@ -0,0 +1,26 @@ +name: Pinact + +on: + push: + branches: + - '*' + paths: + - .github/** + pull_request: + branches: + - master + paths: + - .github/** + +jobs: + pinact: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Pinact + uses: suzuki-shunsuke/pinact-action@cf51507d80d4d6522a07348e3d58790290eaf0b6 # v2.0.0 + with: + skip_push: "true" + verify: "true" From c27b4e4b3831dccb51966a6b85a652389544e3b2 Mon Sep 17 00:00:00 2001 From: Kyosuke Fujimoto Date: Wed, 29 Apr 2026 20:54:38 +0900 Subject: [PATCH 5/5] Remove checksum steps from release workflow --- .github/workflows/release.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14f315c..4032f18 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,8 +41,6 @@ jobs: run: echo "RELEASE_VERSION=${GITHUB_REF_NAME#v}" >> ${GITHUB_ENV} - name: Archive run: tar -czf stu-${{ env.RELEASE_VERSION }}-${{ matrix.targets.target }}.tar.gz -C target/${{ matrix.targets.target }}/release stu - - name: Checksum - run: shasum -a 256 stu-${{ env.RELEASE_VERSION }}-${{ matrix.targets.target }}.tar.gz - name: Upload artifact uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: @@ -61,8 +59,6 @@ jobs: path: releases pattern: release-* merge-multiple: true - - name: Checksum - run: sha256sum releases/* > ./releases/checksum.txt - name: Create Draft Release uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0 with: