2020-05-25 00:45:47 +00:00
|
|
|
name: Security audit
|
|
|
|
on:
|
2020-05-25 14:04:26 +00:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2021-10-25 17:39:09 +00:00
|
|
|
- "**/Cargo.toml"
|
|
|
|
- "**/Cargo.lock"
|
2020-05-25 00:45:47 +00:00
|
|
|
push:
|
|
|
|
paths:
|
2021-10-25 17:39:09 +00:00
|
|
|
- "**/Cargo.toml"
|
|
|
|
- "**/Cargo.lock"
|
2020-05-25 00:45:47 +00:00
|
|
|
jobs:
|
|
|
|
security_audit:
|
|
|
|
runs-on: ubuntu-latest
|
2023-02-28 18:22:02 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
checks:
|
|
|
|
- advisories
|
|
|
|
- bans licenses sources
|
|
|
|
|
|
|
|
# Prevent sudden announcement of a new advisory from failing ci:
|
|
|
|
continue-on-error: ${{ matrix.checks == 'advisories' }}
|
|
|
|
|
2020-05-25 00:45:47 +00:00
|
|
|
steps:
|
2021-10-25 17:39:09 +00:00
|
|
|
- name: Setup | Checkout
|
2022-03-02 15:09:45 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-10-25 17:39:09 +00:00
|
|
|
- name: Test | Security Audit
|
2023-07-28 18:59:28 +00:00
|
|
|
uses: EmbarkStudios/cargo-deny-action@v1.5.4
|
2020-05-25 00:45:47 +00:00
|
|
|
with:
|
2023-02-28 18:22:02 +00:00
|
|
|
command: check ${{ matrix.checks }}
|