-
Notifications
You must be signed in to change notification settings - Fork 12
41 lines (36 loc) · 1.34 KB
/
Copy pathcodeql.yml
File metadata and controls
41 lines (36 loc) · 1.34 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
# CodeQL static analysis for the JS/TS tree (7th audit N-02). Read-only over
# the source plus security-events:write to publish alerts; no repo secrets,
# no pull_request_target. Third-party actions pinned to full commit SHAs to
# match the repo's supply-chain style (deploy.yml / secret-scan.yml).
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "27 4 * * 1" # weekly, Monday 04:27 UTC
permissions:
contents: read
jobs:
analyze:
name: Analyze (javascript-typescript)
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
- name: Initialize CodeQL
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v3
with:
languages: javascript-typescript
# Excludes js/missing-rate-limiting — see the config for why (the
# rule cannot see hand-rolled limiters, so it flags routes that are
# rate-limited and re-opens forever).
config-file: ./.github/codeql/codeql-config.yml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v3
with:
category: "/language:javascript-typescript"