mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08: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:
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
|
||||||
Reference in New Issue
Block a user