-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (50 loc) · 1.33 KB
/
Copy pathsecurity.yml
File metadata and controls
61 lines (50 loc) · 1.33 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
56
57
58
59
60
61
name: Security Scanning
on:
schedule:
# Run at 3 AM UTC every day
- cron: '0 3 * * *'
pull_request:
branches: [main, develop]
workflow_dispatch:
jobs:
semgrep:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Semgrep
uses: returntocorp/semgrep-action@v1
with:
config: auto
outputs: semgrep-report.json
- name: Upload Semgrep report
if: always()
uses: actions/upload-artifact@v4
with:
name: semgrep-report
path: semgrep-report.json
retention-days: 30
dependency-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Check for vulnerabilities
run: |
# Using npm audit as fallback since bun audit may not be available
npm audit --audit-level=high || true
- name: Upload audit report
if: always()
uses: actions/upload-artifact@v4
with:
name: dependency-audit
path: |
npm-audit-report.json
package-lock.json
retention-days: 30