2020-05-25 02:45:47 +02:00
|
|
|
name: Security audit
|
|
|
|
on:
|
2020-05-25 16:04:26 +02:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2021-10-25 19:39:09 +02:00
|
|
|
- "**/Cargo.toml"
|
|
|
|
- "**/Cargo.lock"
|
2020-05-25 02:45:47 +02:00
|
|
|
push:
|
|
|
|
paths:
|
2021-10-25 19:39:09 +02:00
|
|
|
- "**/Cargo.toml"
|
|
|
|
- "**/Cargo.lock"
|
2020-05-25 02:45:47 +02:00
|
|
|
jobs:
|
|
|
|
security_audit:
|
|
|
|
runs-on: ubuntu-latest
|
2023-02-28 19:22:02 +01: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 02:45:47 +02:00
|
|
|
steps:
|
2021-10-25 19:39:09 +02:00
|
|
|
- name: Setup | Checkout
|
2022-03-02 16:09:45 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-10-25 19:39:09 +02:00
|
|
|
- name: Test | Security Audit
|
2023-03-25 12:35:17 +01:00
|
|
|
uses: EmbarkStudios/cargo-deny-action@v1.5.0
|
2020-05-25 02:45:47 +02:00
|
|
|
with:
|
2023-02-28 19:22:02 +01:00
|
|
|
command: check ${{ matrix.checks }}
|