-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 831 Bytes
/
Copy pathcodeql.yml
File metadata and controls
33 lines (27 loc) · 831 Bytes
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
# GitHub's own static analysis. This complements `npm audit` rather than
# replacing it: audit inspects *dependencies* for known advisories, CodeQL
# inspects *our own code* for injection, path traversal, unsafe deserialisation
# and similar. Free for public repositories.
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Re-scan weekly so newly published queries are applied to old code.
- cron: "27 4 * * 1"
permissions:
contents: read
security-events: write
jobs:
analyze:
name: Analyze TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: github/codeql-action/init@v4
with:
languages: javascript-typescript
queries: security-and-quality
- uses: github/codeql-action/analyze@v4