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