-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.53 KB
/
audit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Audit
on:
# Schedule daily updates.
schedule: [ { cron: "0 0 * * *" } ]
# (optional) Run workflow manually.
workflow_dispatch:
# (optional) Run workflow when pushing on master.
push:
paths:
# Run if workflow changes
- ".github/workflows/audit.yaml"
# Run on changed dependencies
- "**/Cargo.toml"
- "**/Cargo.lock"
# Run if the configuration file changes
- "**/audit.toml"
pull_request:
permissions: read-all
jobs:
general_audit:
runs-on: ubuntu-22.04
strategy:
matrix:
checks:
- advisories
- bans licenses sources
# Prevent sudden announcement of a new advisory from failing ci:
continue-on-error: ${{ matrix.checks == 'advisories' }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
with:
log-level: error
command: check ${{ matrix.checks }}
arguments: --all-features
security_audit:
runs-on: ubuntu-22.04
permissions:
issues: write
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v4
- name: Audit Rust Dependencies
uses: actions-rust-lang/audit@v1
with:
# Comma separated list of issues to ignore
ignore: RUSTSEC-2023-0071