From dbfa0506db35a1cfc472cb8256418b4c088afa7b Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Thu, 19 Nov 2020 15:18:04 +0100 Subject: [PATCH 1/2] Add scheduled audit check in CI --- .github/workflows/audit.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/audit.yml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 00000000..6143cca8 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,19 @@ +name: Audit + +on: + push: + paths: + - '**/Cargo.toml' + - '**/Cargo.lock' + schedule: + - cron: '0 0 * * 0' # Once per week + +jobs: + + security_audit: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 73326068f8eecb7f5eb48abf6e44983cf48aa7e1 Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Thu, 19 Nov 2020 15:22:46 +0100 Subject: [PATCH 2/2] Use dirs-next instead of dirs since the latter is unmantained --- Cargo.toml | 2 +- examples/repl.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 54b46230..b9069d2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,7 +61,7 @@ bdk-testutils-macros = { version = "0.1.0-beta.1", path = "./testutils-macros" } serial_test = "0.4" lazy_static = "1.4" rustyline = "6.0" -dirs = "2.0" +dirs-next = "2.0" env_logger = "0.7" [[example]] diff --git a/examples/repl.rs b/examples/repl.rs index 09e75f9e..e399143b 100644 --- a/examples/repl.rs +++ b/examples/repl.rs @@ -48,7 +48,7 @@ use bdk::blockchain::esplora::EsploraBlockchainConfig; fn prepare_home_dir() -> PathBuf { let mut dir = PathBuf::new(); - dir.push(&dirs::home_dir().unwrap()); + dir.push(&dirs_next::home_dir().unwrap()); dir.push(".bdk-bitcoin"); if !dir.exists() {