This repository was archived by the owner on Aug 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 1.49 KB
/
Copy pathsecurity.yml
File metadata and controls
55 lines (51 loc) · 1.49 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
47
48
49
50
51
52
53
54
55
name: Security
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
security-events: write
jobs:
audit:
name: Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Checkout Reflective sibling dependencies
run: bash scripts/ci/checkout-reflective-siblings.sh
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.96.0"
- uses: taiki-e/install-action@v2
with:
tool: cargo-audit
- name: Run cargo-audit
run: >
cargo audit --deny warnings
--ignore RUSTSEC-2023-0071
--ignore RUSTSEC-2023-0089
--ignore RUSTSEC-2024-0384
--ignore RUSTSEC-2024-0436
--ignore RUSTSEC-2025-0012
--ignore RUSTSEC-2025-0134
--ignore RUSTSEC-2025-0141
--ignore RUSTSEC-2026-0002
--ignore RUSTSEC-2021-0141
--ignore RUSTSEC-2026-0194
--ignore RUSTSEC-2026-0195
secrets:
name: Secrets Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install and run gitleaks
run: |
GITLEAKS_VERSION="8.27.2"
curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" \
| tar xz -C /usr/local/bin gitleaks
gitleaks detect --source . --verbose