From 366a85b9161008adb32cc5af459608119c7eeb08 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 20 Jul 2023 11:53:04 -0400 Subject: [PATCH 1/3] Ignore tokio oneshot alert --- .cargo/audit.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .cargo/audit.toml diff --git a/.cargo/audit.toml b/.cargo/audit.toml new file mode 100644 index 0000000..8bb4054 --- /dev/null +++ b/.cargo/audit.toml @@ -0,0 +1,5 @@ +[advisories] +ignore = [ + "RUSTSEC-2021-0124" # See issue #3 +] +informational_warnings = ["unmaintained"] \ No newline at end of file From 55d526b66011a8386bca05f3567f629ce687fc95 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 20 Jul 2023 11:53:41 -0400 Subject: [PATCH 2/3] Re-run audit CI when config file changes --- .github/workflows/audit.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 19417bb..9c08f67 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -6,6 +6,7 @@ on: - '**/Cargo.toml' - '**/Cargo.lock' - '.github/workflows/audit.yml' + - '**/audit.toml' schedule: - cron: '0 0 * * *' From 85429ce59c2ef812b20f315f0c91686afe316ca7 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 20 Jul 2023 11:56:43 -0400 Subject: [PATCH 3/3] Restrict when to rerun build task --- .github/workflows/build.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 22e8a52..29094b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,14 @@ -on: [push, pull_request] - name: Build +on: + pull_request: + push: + paths: + - '.github/workflows/build.yml' + - '**/Cargo.toml' + - '**/Cargo.lock' + - '**/src/*' + jobs: build_and_test: name: Rust project