-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (59 loc) · 1.89 KB
/
codeql-analysis.yml
File metadata and controls
69 lines (59 loc) · 1.89 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
62
63
64
65
66
67
68
69
# =============================================================================
# codeql-analysis.yml — GateFlow Code Scanning (CodeQL)
#
# Detects common vulnerabilities (XSS, SQLi, Hardcoded Secrets, etc.)
# across all apps and packages in the monorepo.
#
# Runs:
# - Every push to master/main
# - Every pull request to master/main
# - Weekly schedule (Sundays)
# =============================================================================
name: 'CodeQL Analysis'
on:
push:
branches: ['main', 'master']
pull_request:
branches: ['main', 'master']
schedule:
- cron: '30 4 * * 0'
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
jobs:
analyze:
name: Analyze
runs-on: 'ubuntu-latest'
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['javascript-typescript']
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# Initialize the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3.28.10
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries:
# queries: security-extended,security-and-quality
# Autobuild attempts to build any compiled languages.
# For JS/TS, it usually works out of the box by scanning files.
- name: Autobuild
uses: github/codeql-action/autobuild@v3.28.10
# If Autobuild fails, we can run manual build:
# - name: Install & Build
# run: |
# pnpm install --frozen-lockfile
# pnpm turbo build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3.28.10
with:
category: '/language:${{matrix.language}}'