-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (45 loc) · 1.45 KB
/
Copy pathcodeql.yml
File metadata and controls
52 lines (45 loc) · 1.45 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
name: CodeQL
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
schedule:
# Weekly Mondays at 06:00 UTC — independent of push activity so the
# badge stays current even when the repo is quiet.
- cron: '0 6 * * 1'
# Least-privilege default; the analyze job widens this for SARIF upload.
permissions:
contents: read
jobs:
analyze:
name: Analyze (javascript-typescript)
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
security-events: write
contents: read
actions: read
strategy:
fail-fast: false
matrix:
language: [javascript-typescript]
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Initialize CodeQL
uses: github/codeql-action/init@dd903d2e4f5405488e5ef1422510ee31c8b32357 # v3.36.2
with:
languages: ${{ matrix.language }}
queries: security-and-quality
# Saxon-JS is a vendored third-party engine — out of scope for findings on our code.
# tests/ is Playwright harness code, not shipped to users.
config: |
paths-ignore:
- lib/SaxonJS2.js
- tests/**
- dist/**
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@dd903d2e4f5405488e5ef1422510ee31c8b32357 # v3.36.2
with:
category: "/language:${{ matrix.language }}"