-
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 672 Bytes
/
security.yml
File metadata and controls
30 lines (28 loc) · 672 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
name: Security Audit
on:
schedule:
- cron: '0 0 * * 0' # Weekly on Sunday
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run audit
run: cargo audit