-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (49 loc) · 1.35 KB
/
security.yml
File metadata and controls
53 lines (49 loc) · 1.35 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
name: Security Audit
on:
schedule:
# Every Monday at 09:00 UTC
- cron: "0 9 * * MON"
workflow_dispatch:
jobs:
go-audit:
name: Go Dependency Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Scan Go dependencies
working-directory: backend
run: govulncheck ./...
node-audit:
name: Node Dependency Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: frontend/package-lock.json
- name: Install frontend deps
working-directory: frontend
run: npm ci
- name: Scan Node dependencies
working-directory: frontend
run: npm audit --audit-level=high
secret-scan:
name: Secret Scan (git history)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Scan for secrets in git history
uses: trufflesecurity/trufflehog@main
with:
path: ./
base: ${{ github.event.repository.default_branch }}
only-verified: true