Unify audit and detect workflows
This commit is contained in:
parent
34876aea5e
commit
8cfad86ec1
2 changed files with 17 additions and 19 deletions
20
.github/workflows/audit.yml
vendored
20
.github/workflows/audit.yml
vendored
|
|
@ -1,12 +1,26 @@
|
||||||
name: Audit
|
name: Audit
|
||||||
on: [push]
|
on:
|
||||||
|
push: {}
|
||||||
|
pull_request: {}
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
jobs:
|
jobs:
|
||||||
dependencies:
|
vulnerabilities:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: hecrj/setup-rust-action@v1
|
- uses: hecrj/setup-rust-action@v1
|
||||||
- name: Install cargo-audit
|
- name: Install cargo-audit
|
||||||
run: cargo install cargo-audit
|
run: cargo install cargo-audit
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Audit dependencies
|
- name: Audit vulnerabilities
|
||||||
run: cargo audit
|
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: Find outdated dependencies
|
||||||
|
run: cargo outdated --workspace --exit-code 1
|
||||||
|
|
|
||||||
16
.github/workflows/detect.yml
vendored
16
.github/workflows/detect.yml
vendored
|
|
@ -1,16 +0,0 @@
|
||||||
name: Detect
|
|
||||||
on:
|
|
||||||
push: {}
|
|
||||||
pull_request: {}
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * *'
|
|
||||||
jobs:
|
|
||||||
outdated_dependencies:
|
|
||||||
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: Detect outdated dependencies
|
|
||||||
run: cargo outdated --exit-code 1
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue