From 31e8be7b6e6aea661713d9ef3054a92cb8bd44a4 Mon Sep 17 00:00:00 2001
From: Luke Parker <lukeparker5132@gmail.com>
Date: Fri, 2 Dec 2022 13:38:30 -0500
Subject: [PATCH] Run cargo deny daily

---
 .github/workflows/daily-deny.yml | 30 ++++++++++++++++++++++++++++++
 .github/workflows/tests.yml      |  2 +-
 2 files changed, 31 insertions(+), 1 deletion(-)
 create mode 100644 .github/workflows/daily-deny.yml

diff --git a/.github/workflows/daily-deny.yml b/.github/workflows/daily-deny.yml
new file mode 100644
index 00000000..01e8e6a7
--- /dev/null
+++ b/.github/workflows/daily-deny.yml
@@ -0,0 +1,30 @@
+name: Daily Deny Check
+
+on:
+  schedule:
+    - cron: "0 0 * * *"
+
+jobs:
+  deny:
+    name: Run cargo deny
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+
+      - name: Advisory Cache
+        uses: actions/cache@v3
+        with:
+          path: ~/.cargo/advisory-db
+          key: rust-advisory-db
+
+      - name: Install cargo
+        uses: actions-rs/toolchain@v1
+        with:
+          toolchain: stable
+          profile: minimal
+
+      - name: Install cargo deny
+        run: cargo install --locked cargo-deny
+
+      - name: Run cargo deny
+        run: cargo deny -L error --all-features check
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 999dede3..2d686d97 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -32,7 +32,7 @@ jobs:
     steps:
       - uses: actions/checkout@v3
 
-      - name: Rust Cache
+      - name: Advisory Cache
         uses: actions/cache@v3
         with:
           path: ~/.cargo/advisory-db