forked from Mars-Sea/dsh-commandcode-provider
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (41 loc) · 997 Bytes
/
Copy pathsecurity.yml
File metadata and controls
45 lines (41 loc) · 997 Bytes
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
name: Security Scans
on:
push:
branches: [main]
pull_request:
jobs:
npm-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm audit --audit-level=high
codeql:
name: CodeQL analysis
runs-on: ubuntu-latest
permissions:
actions: read
security-events: write
steps:
- uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: javascript-typescript
- name: Run CodeQL
uses: github/codeql-action/analyze@v4
secrets-scan:
name: Secrets scan (gitleaks)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Run gitleaks
uses: gitleaks/gitleaks-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}