-
Notifications
You must be signed in to change notification settings - Fork 75
41 lines (35 loc) · 910 Bytes
/
audit.yml
File metadata and controls
41 lines (35 loc) · 910 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
37
38
39
40
41
on:
push:
pull_request:
types: [opened, reopened]
schedule:
- cron: '00 15 * * 1'
name: Audit
jobs:
check:
name: audit
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Setup Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.cargo/.crates.toml
~/.cargo/.crates2.json
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-audit
- name: Install Cargo Audit
run: cargo install cargo-audit --locked
shell: bash
- name: Run Audit
run: cargo audit