diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aac97c6..c633558 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@v4 + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Get MSRV id: get-msrv run: | @@ -32,12 +33,15 @@ jobs: - ${{ needs.prepare.outputs.msrv }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master + - 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@v2 + - name: Cache + 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 a1a49b2..b8f5731 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -22,16 +22,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 - name: Build with Jekyll - uses: actions/jekyll-build-pages@v1 + uses: actions/jekyll-build-pages@44a6e6beabd48582f863aeeb6cb2151cc1716697 # v1.0.13 with: source: ./ destination: ./_site - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 deploy: environment: @@ -42,4 +42,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 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" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e4c2b8..527e807 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 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@a8cc74d61047fa553b4e908b4b10e70029f00ca6 # v1.0.6 with: command: build target: ${{ matrix.targets.target }} @@ -41,10 +41,8 @@ jobs: run: echo "RELEASE_VERSION=${GITHUB_REF_NAME#v}" >> ${GITHUB_ENV} - name: Archive run: tar -czf ddv-${{ env.RELEASE_VERSION }}-${{ matrix.targets.target }}.tar.gz -C target/${{ matrix.targets.target }}/release ddv - - name: Checksum - run: shasum -a 256 ddv-${{ env.RELEASE_VERSION }}-${{ matrix.targets.target }}.tar.gz - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: release-${{ matrix.targets.target }} path: ddv-${{ env.RELEASE_VERSION }}-${{ matrix.targets.target }}.tar.gz @@ -56,19 +54,16 @@ jobs: needs: build steps: - name: Download artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: path: releases pattern: release-* merge-multiple: true - - 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@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0 with: draft: true generate_release_notes: true make_latest: true files: | releases/* -