From 0dd66ca3a0ba58ca85d6bff77b1b8d87836b1048 Mon Sep 17 00:00:00 2001 From: Jisu-Woniu <31986081+Jisu-Woniu@users.noreply.github.com> Date: Mon, 9 Sep 2024 15:17:09 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=92=9A=20fix=20compilation=20error?= =?UTF-8?q?=20and=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tauri-ci.yml | 4 +--- .github/workflows/tauri-release.yml | 4 +--- src-tauri/crypto/src/signing.rs | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tauri-ci.yml b/.github/workflows/tauri-ci.yml index bc28640..ce24c74 100644 --- a/.github/workflows/tauri-ci.yml +++ b/.github/workflows/tauri-ci.yml @@ -22,9 +22,7 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: latest + uses: pnpm/action-setup@v4.0.0 - name: Setup Node.js uses: actions/setup-node@v4 with: diff --git a/.github/workflows/tauri-release.yml b/.github/workflows/tauri-release.yml index b34e126..9fc9ae2 100644 --- a/.github/workflows/tauri-release.yml +++ b/.github/workflows/tauri-release.yml @@ -22,9 +22,7 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: latest + uses: pnpm/action-setup@v4.0.0 - name: Setup Node.js uses: actions/setup-node@v4 with: diff --git a/src-tauri/crypto/src/signing.rs b/src-tauri/crypto/src/signing.rs index 7a1d674..4a1ee65 100644 --- a/src-tauri/crypto/src/signing.rs +++ b/src-tauri/crypto/src/signing.rs @@ -24,6 +24,7 @@ fn sign( let now = Utc::now(); let sig_conf = SignatureConfigBuilder::default() .pub_alg(secret_key.algorithm()) + .hash_alg(secret_key.hash_alg()) .typ(SignatureType::Binary) .issuer(Some(secret_key.key_id())) .created(Some(now))