mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
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
2 changed files with 25 additions and 11 deletions
11
.github/workflows/build-dev-and-ci.yml
vendored
11
.github/workflows/build-dev-and-ci.yml
vendored
|
@ -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:
|
||||||
|
|
25
.github/workflows/cargo-deny.yml
vendored
Normal file
25
.github/workflows/cargo-deny.yml
vendored
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue