summaryrefslogtreecommitdiffstats
path: root/.github/workflows/audit.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/audit.yml')
-rw-r--r--.github/workflows/audit.yml24
1 files changed, 21 insertions, 3 deletions
diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
index ba5dc190..80bbcacd 100644
--- a/.github/workflows/audit.yml
+++ b/.github/workflows/audit.yml
@@ -1,12 +1,30 @@
name: Audit
-on: [push]
+on:
+ push: {}
+ pull_request: {}
+ schedule:
+ - cron: '0 0 * * *'
jobs:
- dependencies:
+ vulnerabilities:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
- name: Install cargo-audit
run: cargo install cargo-audit
- uses: actions/checkout@master
- - name: Audit dependencies
+ - name: Resolve dependencies
+ run: cargo update
+ - name: Audit vulnerabilities
run: cargo audit
+
+ artifacts:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: hecrj/setup-rust-action@v1
+ - name: Install cargo-outdated
+ run: cargo install cargo-outdated
+ - uses: actions/checkout@master
+ - name: Delete `web-sys` dependency from `integration` example
+ run: sed -i '$d' examples/integration/Cargo.toml
+ - name: Find outdated dependencies
+ run: cargo outdated --workspace --exit-code 1