-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (47 loc) · 1.3 KB
/
codeql2.yml
File metadata and controls
53 lines (47 loc) · 1.3 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: "CodeQL Security Scan"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * 1' # Weekly on Monday
jobs:
analyze:
name: Analyze Server Code
runs-on: ubuntu-latest
# Skip CodeQL on Dependabot PRs - they're just dependency updates
if: github.actor != 'dependabot[bot]'
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript-typescript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: security-and-quality
config: |
paths:
- server
paths-ignore:
- client
- tools
- '**/*.test.js'
- '**/node_modules'
query-filters:
- exclude:
id: js/missing-token-validation
# We use HMAC authentication, not JWT tokens
# This rule produces false positives for our auth system
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"