-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (33 loc) · 750 Bytes
/
audit.yml
File metadata and controls
36 lines (33 loc) · 750 Bytes
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
name: Rust Security Audit
permissions:
contents: read
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
pull_request:
jobs:
audit:
strategy:
matrix:
os:
- ubuntu-latest
rust:
- stable
runs-on: ${{ matrix.os }}
steps:
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
- name: Rust Version
run: rustc --version
- run: cargo install cargo-audit
- name: Checkout sources
uses: actions/checkout@v6
with:
persist-credentials: false
- run: cargo generate-lockfile
- run: cargo audit --deny warnings