Repository navigation
61 lines (58 loc) · 1.75 KB
/
Copy pathcodeql.yml
File metadata and controls
61 lines (58 loc) · 1.75 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
name: "CodeQL"
on:
push:
branches: [main, master, develop, regression-audit]
paths-ignore:
- "**/*.php"
- "**/*.md"
pull_request:
branches: [main, master, develop, '1.2.x', regression-audit]
paths-ignore:
- "**/*.php"
- "**/*.md"
merge_group:
schedule:
- cron: "30 1 * * 1"
workflow_dispatch:
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-24.04
timeout-minutes: 20
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["javascript-typescript", "python"]
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4
with:
persist-credentials: false
- name: Setup Node for managed JavaScript
if: matrix.language == 'javascript-typescript'
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package-lock.json
- name: Build patched browser assets
if: matrix.language == 'javascript-typescript'
run: |
set -euo pipefail
npm ci --ignore-scripts
npm run postinstall --ignore-scripts
- name: Initialize CodeQL
uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v3
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v3
with:
category: "/language:${{ matrix.language }}"