forked from StellarRouter/StellarRouter
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 800 Bytes
/
Copy pathsecurity-audit.yml
File metadata and controls
37 lines (29 loc) · 800 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
name: Security Audit
on:
pull_request:
schedule:
- cron: '0 0 * * 0' # Weekly on Sunday at midnight UTC
jobs:
audit:
name: Cargo Audit & Deny
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-audit-${{ hashFiles('**/Cargo.lock') }}
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Install cargo-deny
run: cargo install cargo-deny
- name: Run cargo audit
run: cargo audit
- name: Run cargo deny
run: cargo deny check