-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.2 KB
/
Copy pathcodeql.yml
File metadata and controls
47 lines (39 loc) · 1.2 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
name: CodeQL
# Static-analysis security scan over JS/TS. Findings appear in the
# repo's Security tab and as PR review comments.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly Monday 06:00 UTC sweep to catch new advisories against
# an unchanged codebase.
- cron: "0 6 * * 1"
permissions:
contents: read
security-events: write
actions: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: CodeQL (javascript-typescript)
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 15
steps:
- uses: actions/checkout@v5
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript-typescript
# The default query suite covers OWASP top-10 + Node.js
# ecosystem-specific patterns. `security-extended` widens it
# to include more heuristic checks at the cost of a higher
# false-positive rate.
queries: security-extended
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:javascript-typescript"