forked from Vera3289/paystream-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 692 Bytes
/
Copy pathaudit.yml
File metadata and controls
32 lines (26 loc) · 692 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
name: Security Audit
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly scan every Monday at 08:00 UTC
- cron: "0 8 * * 1"
jobs:
audit:
name: cargo audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo audit binary
uses: actions/cache@v4
with:
path: ~/.cargo/bin/cargo-audit
key: cargo-audit-${{ runner.os }}-v0.21
- name: Install cargo-audit
run: cargo install --locked cargo-audit
- name: Run cargo audit
run: cargo audit --deny warnings