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
|
2024-01-07 02:05:37 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-10-25 17:39:09 +00:00
|
|
|
- name: Test | Security Audit
|
2024-03-22 11:37:11 +00:00
|
|
|
uses: EmbarkStudios/cargo-deny-action@v1.6.2
|
2020-05-25 00:45:47 +00:00
|
|
|
with:
|
2023-02-28 18:22:02 +00:00
|
|
|
command: check ${{ matrix.checks }}
|