-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.64 KB
/
Copy pathcodeql.yml
File metadata and controls
51 lines (43 loc) · 1.64 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
# CodeQL, GitHub's static analysis, over the TypeScript in this workspace.
#
# Committed rather than enabled through the repository's default setup, for the
# same reason every other check here is a file: what runs, when, and over what
# should be reviewable in a diff.
#
# The weekly run matters as much as the per-push one -- most findings arrive
# because the queries improved, not because the code changed.
name: CodeQL
on:
push:
branches: [main, develop]
pull_request:
schedule:
# Monday morning, after Dependabot has opened whatever it is going to.
- cron: '30 6 * * 1'
concurrency:
group: codeql-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze TypeScript
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
# security-events: write is how the results reach the Security tab; a run
# without it analyses the code and then throws the answer away.
security-events: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: javascript-typescript
# The query set and the one rule this project excludes live in the
# config file, where each can carry its reason. security-and-quality
# over the default security-extended: this is a small codebase where
# the quality queries are worth reading rather than noise to filter.
config-file: .github/codeql/codeql-config.yml
- name: Analyze
uses: github/codeql-action/analyze@v4