Repository navigation
68 lines (56 loc) · 1.89 KB
/
Copy pathcodeql-analysis.yml
File metadata and controls
68 lines (56 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
# CodeQL security analysis workflow for Expressive Tea
# Scans TypeScript/JavaScript code for security vulnerabilities and code quality issues
#
# Learn more about CodeQL:
# https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql
name: 'CodeQL Security Scan'
on:
push:
branches: [develop, main]
pull_request:
branches: [develop, main]
merge_group:
schedule:
# Run weekly on Saturdays at 10:26 PM UTC
- cron: '26 22 * * 6'
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze Code
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
language: ['javascript']
# CodeQL supports: 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift'
# Learn more: https://aka.ms/codeql-docs/language-support
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v6
- name: 🔧 Enable Corepack
run: corepack enable
- name: 🔧 Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'yarn'
- name: 📦 Install dependencies
run: yarn install --immutable
# Initializes the CodeQL tools for scanning
- name: 🔍 Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# Use default CodeQL query suite
# For custom queries, use: queries: ./path/to/local/query, your-org/your-repo/queries@main
# Build the TypeScript project for better analysis
- name: 🏗️ Build TypeScript
run: yarn build
- name: 🔬 Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: '/language:${{ matrix.language }}'