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