-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.17 KB
/
Copy pathcodeql.yml
File metadata and controls
45 lines (37 loc) · 1.17 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
name: CodeQL
# Static application security testing (SAST) for the SPA source.
# GitHub-native, no repository dependency added. Results appear under the
# repository "Security" tab. See docs/SECURITY.md.
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master, develop]
schedule:
# Weekly baseline scan (Mondays 06:00 UTC) to catch newly disclosed patterns.
- cron: "0 6 * * 1"
concurrency:
group: codeql-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze (javascript-typescript)
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
actions: read
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript-typescript
# "security-and-quality" adds maintainability queries on top of security.
queries: security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:javascript-typescript"