-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.28 KB
/
Copy pathcodeql.yml
File metadata and controls
47 lines (39 loc) · 1.28 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"
# CodeQL has no Solidity analyser, so the Solidity side is covered by `forge fmt --check`,
# `forge build --sizes` and 120 unit tests in ci.yml. What CodeQL does cover here is everything
# that touches the network or a filesystem path: the TypeScript proving pipeline (src/), the
# capture scripts, and the Next.js app — including the allowlisted /evidence route.
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
# Weekly, so a newly-published rule finds this repo even after the submission is frozen.
- cron: "27 4 * * 1"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["javascript-typescript"]
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"