Make CI audit security advisories daily instead of in each PR (#2425)
* Only run cargo deny on the main branch * Run cargo-deny once per day instead of per-commit * Still check licenses in the build-ci
This commit is contained in:
parent
a6d3c06641
commit
86e6923a7c
|
|
@ -108,17 +108,6 @@ jobs:
|
||||||
- name: 📥 Clone and checkout repository
|
- name: 📥 Clone and checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: 🔒 Check crate security advisories for root workspace
|
|
||||||
uses: EmbarkStudios/cargo-deny-action@v2
|
|
||||||
with:
|
|
||||||
command: check advisories
|
|
||||||
|
|
||||||
- name: 🔒 Check crate security advisories for /libraries/rawkit
|
|
||||||
uses: EmbarkStudios/cargo-deny-action@v2
|
|
||||||
with:
|
|
||||||
command: check advisories
|
|
||||||
manifest-path: libraries/rawkit/Cargo.toml
|
|
||||||
|
|
||||||
- name: 📜 Check crate license compatibility for root workspace
|
- name: 📜 Check crate license compatibility for root workspace
|
||||||
uses: EmbarkStudios/cargo-deny-action@v2
|
uses: EmbarkStudios/cargo-deny-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
name: "Audit Security Advisories"
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Run once each day
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cargo-deny:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 📥 Clone and checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: 🔒 Check crate security advisories for root workspace
|
||||||
|
uses: EmbarkStudios/cargo-deny-action@v2
|
||||||
|
with:
|
||||||
|
command: check advisories
|
||||||
|
|
||||||
|
- name: 🔒 Check crate security advisories for /libraries/rawkit
|
||||||
|
uses: EmbarkStudios/cargo-deny-action@v2
|
||||||
|
with:
|
||||||
|
command: check advisories
|
||||||
|
manifest-path: libraries/rawkit/Cargo.toml
|
||||||
Loading…
Reference in New Issue