File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Security Scan
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+ schedule :
9+ - cron : " 0 3 * * 1" # Every Monday at 03:00 UTC
10+ workflow_dispatch :
11+
12+ jobs :
13+ codeql :
14+ name : CodeQL Analysis
15+ runs-on : ubuntu-latest
16+ permissions :
17+ security-events : write
18+ actions : read
19+ contents : read
20+ steps :
21+ - name : Checkout repository
22+ uses : actions/checkout@v4
23+
24+ - name : Initialize CodeQL
25+ uses : github/codeql-action/init@v3
26+ with :
27+ languages : javascript-typescript
28+
29+ - name : Perform CodeQL Analysis
30+ uses : github/codeql-action/analyze@v3
31+
32+ secret-scanning :
33+ name : Secret Scanning (Gitleaks)
34+ runs-on : ubuntu-latest
35+ steps :
36+ - name : Checkout repository
37+ uses : actions/checkout@v4
38+ with :
39+ fetch-depth : 0
40+
41+ - name : Run Gitleaks
42+ uses : gitleaks/gitleaks-action@v2
43+ env :
44+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45+
46+ dependency-review :
47+ name : Dependency Review
48+ runs-on : ubuntu-latest
49+ if : github.event_name == 'pull_request'
50+ steps :
51+ - name : Checkout repository
52+ uses : actions/checkout@v4
53+
54+ - name : Dependency Review
55+ uses : actions/dependency-review-action@v4
You can’t perform that action at this time.
0 commit comments