-
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 1 KB
/
Copy pathcodeql.yml
File metadata and controls
32 lines (29 loc) · 1 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
# CodeQL static analysis for the JavaScript sources (src/, hooks/, test/). Findings land
# in Security -> Code scanning. This is CodeQL "advanced setup": if the repo ever had
# "default setup" enabled (Settings -> Code security), disable it there so the two don't
# fight over the same analysis slot.
name: CodeQL
on:
push:
branches: [main, master]
pull_request:
schedule:
- cron: "23 4 * * 1" # weekly, Monday 04:23 UTC — catches new queries, not just new code
permissions:
contents: read
jobs:
analyze:
name: Analyze (javascript-typescript)
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write # upload SARIF results to code scanning
steps:
- uses: actions/checkout@v7
- uses: github/codeql-action/init@v4
with:
languages: javascript-typescript
build-mode: none # interpreted — nothing to compile
- uses: github/codeql-action/analyze@v4
with:
category: "/language:javascript-typescript"