Skip to content

Commit e476523

Browse files
authored
ci: shard gateway codeql quality
Add a narrow gateway/runtime CodeQL critical-quality shard and document it.
1 parent cd2e13b commit e476523

3 files changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: openclaw-codeql-gateway-runtime-boundary-critical-quality
2+
3+
disable-default-queries: true
4+
5+
queries:
6+
- uses: security-and-quality
7+
8+
query-filters:
9+
- include:
10+
problem.severity:
11+
- error
12+
- exclude:
13+
tags:
14+
- security
15+
16+
paths:
17+
- src/gateway/protocol
18+
- src/gateway/server-methods
19+
20+
paths-ignore:
21+
- "**/node_modules"
22+
- "**/coverage"
23+
- "**/*.generated.ts"
24+
- "**/*.bundle.js"
25+
- "**/*-runtime.js"
26+
- "**/*.test.ts"
27+
- "**/*.test.tsx"
28+
- "**/*.e2e.test.ts"
29+
- "**/*.e2e.test.tsx"
30+
- "**/*test-support*"
31+
- "**/*test-helper*"
32+
- "**/*mock*"
33+
- "**/*fixture*"
34+
- "**/*bench*"

.github/workflows/codeql-critical-quality.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,27 @@ jobs:
6060
with:
6161
category: "/codeql-critical-quality/config-boundary"
6262

63+
gateway-runtime-boundary:
64+
name: Critical Quality (gateway-runtime-boundary)
65+
runs-on: blacksmith-8vcpu-ubuntu-2404
66+
timeout-minutes: 25
67+
steps:
68+
- name: Checkout
69+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
70+
with:
71+
submodules: false
72+
73+
- name: Initialize CodeQL
74+
uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
75+
with:
76+
languages: javascript-typescript
77+
config-file: ./.github/codeql/codeql-gateway-runtime-boundary-critical-quality.yml
78+
79+
- name: Analyze
80+
uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
81+
with:
82+
category: "/codeql-critical-quality/gateway-runtime-boundary"
83+
6384
plugin-boundary:
6485
name: Critical Quality (plugin-boundary)
6586
runs-on: blacksmith-8vcpu-ubuntu-2404

docs/ci.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ over narrow high-value surfaces. Its baseline job scans the same auth, secrets,
249249
sandbox, cron, and gateway surface as the security workflow. The config-boundary
250250
job scans config schema, migration, normalization, and IO contracts under the
251251
separate `/codeql-critical-quality/config-boundary` category. The
252+
gateway-runtime-boundary job scans gateway protocol schemas and server method
253+
contracts under the separate
254+
`/codeql-critical-quality/gateway-runtime-boundary` category. The
252255
plugin-boundary job scans loader, registry, public-surface, and Plugin SDK
253256
entrypoint contracts under a separate `/codeql-critical-quality/plugin-boundary`
254257
category. Keep the workflow separate from security so quality findings can be

0 commit comments

Comments
 (0)