From 8250a5d8d8809c9f70ef1584a06d6a547ced85a4 Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 26 Apr 2023 16:07:31 +1000 Subject: [PATCH] Update deps and audit (#429) * update deps and audit * don't error on audit fail --- .github/workflows/ci.yml | 9 +++++++++ .github/workflows/nightly-cargo-audit.yml | 4 ++-- fuel-crypto/Cargo.toml | 4 ++-- fuel-crypto/src/mnemonic.rs | 2 +- fuel-vm/Cargo.toml | 2 +- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92af7ea2c3..1f26287757 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -144,3 +144,12 @@ jobs: uses: katyo/publish-crates@v2 with: registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + + cargo_audit: + runs-on: ubuntu-latest + continue-on-error: true + steps: + - uses: actions/checkout@v3 + - uses: rustsec/audit-check@v1.4.1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/nightly-cargo-audit.yml b/.github/workflows/nightly-cargo-audit.yml index 6f5ff26fb4..af316eb553 100644 --- a/.github/workflows/nightly-cargo-audit.yml +++ b/.github/workflows/nightly-cargo-audit.yml @@ -8,7 +8,7 @@ jobs: cargo_audit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/audit-check@v1 + - uses: actions/checkout@v3 + - uses: rustsec/audit-check@v1.4.1 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/fuel-crypto/Cargo.toml b/fuel-crypto/Cargo.toml index 589572c710..d43098bcf6 100644 --- a/fuel-crypto/Cargo.toml +++ b/fuel-crypto/Cargo.toml @@ -12,8 +12,8 @@ description = "Fuel cryptographic primitives." [dependencies] borrown = "0.1" -coins-bip32 = { version = "0.7", default-features = false, optional = true } -coins-bip39 = { version = "0.7", default-features = false, optional = true } +coins-bip32 = { version = "0.8", default-features = false, optional = true } +coins-bip39 = { version = "0.8", default-features = false, features = ["english"], optional = true } fuel-types = { workspace = true, default-features = false } lazy_static = { version = "1.4", optional = true } rand = { version = "0.8", default-features = false, optional = true } diff --git a/fuel-crypto/src/mnemonic.rs b/fuel-crypto/src/mnemonic.rs index 5ddbda6e5f..be41df35db 100644 --- a/fuel-crypto/src/mnemonic.rs +++ b/fuel-crypto/src/mnemonic.rs @@ -7,5 +7,5 @@ use rand::Rng; /// Generates a random mnemonic phrase given a random number generator and /// the number of words to generate, `count`. pub fn generate_mnemonic_phrase(rng: &mut R, count: usize) -> Result { - Ok(Mnemonic::::new_with_count(rng, count)?.to_phrase()?) + Ok(Mnemonic::::new_with_count(rng, count)?.to_phrase()) } diff --git a/fuel-vm/Cargo.toml b/fuel-vm/Cargo.toml index 952054ec61..8b4313dcdf 100644 --- a/fuel-vm/Cargo.toml +++ b/fuel-vm/Cargo.toml @@ -37,7 +37,7 @@ fuel-vm = { path = ".", default-features = false, features = ["test-helpers", "s num-integer = "0.1.45" quickcheck = "1.0" quickcheck_macros = "1.0" -rayon = "1.5.3" +rayon = "1.7" rstest = "0.16" serde_json = "1.0" test-case = "2.2"