Skip to content

Commit

Permalink
Move cargo-deny into a separate workflow on a schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
jcgruenhage committed Jan 7, 2025
1 parent 30863c0 commit 6e2aa6a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,6 @@ jobs:
cargo hakari generate --diff # workspace-hack Cargo.toml is up-to-date
cargo hakari manage-deps --dry-run # all workspace crates depend on workspace-hack
# https://github.com/EmbarkStudios/cargo-deny
- name: Check rust licenses/bans/advisories/sources
if: ${{ !cancelled() }}
run: cargo deny check --hide-inclusion-graph

build-and-test-locally:
needs: [ tag, build-build-tools-image ]
strategy:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/cargo-deny.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: cargo deny checks

on:
pull_request:
paths:
- 'Cargo.lock'
schedule:
- cron: '0 0 * * *'

jobs:
cargo-deny:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

# https://github.com/EmbarkStudios/cargo-deny
- name: Check rust licenses/bans/advisories/sources
if: ${{ !cancelled() }}
run: cargo deny check --hide-inclusion-graph

0 comments on commit 6e2aa6a

Please sign in to comment.