-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.03 KB
/
security.yml
File metadata and controls
46 lines (36 loc) · 1.03 KB
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
42
43
44
45
46
# Dependency + Secret Scan
# Mandatory for blockchain projects
name: Security Scan
on:
push:
branches: [next, feat/**, agent/**, research/**, hotfix/**]
pull_request:
branches: [main, next]
merge_group:
schedule:
- cron: "0 3 * * 1"
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Dependency Review
if: github.event_name == 'pull_request'
continue-on-error: true
uses: actions/dependency-review-action@v4
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Rust security audit
run: |
if [ -f Cargo.toml ]; then cargo audit || true; fi
- name: Run Trivy filesystem scan
uses: aquasecurity/trivy-action@master
with:
scan-type: fs
format: table
exit-code: 0
- name: Secret Scan (Gitleaks)
continue-on-error: true
uses: gitleaks/gitleaks-action@v2