mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
ci: add plugin sdk package contract codeql quality shard (#74342)
This commit is contained in:
34
.github/codeql/codeql-plugin-sdk-package-contract-critical-quality.yml
vendored
Normal file
34
.github/codeql/codeql-plugin-sdk-package-contract-critical-quality.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: openclaw-codeql-plugin-sdk-package-contract-critical-quality
|
||||
|
||||
disable-default-queries: true
|
||||
|
||||
queries:
|
||||
- uses: security-and-quality
|
||||
|
||||
query-filters:
|
||||
- include:
|
||||
problem.severity:
|
||||
- error
|
||||
- exclude:
|
||||
tags:
|
||||
- security
|
||||
|
||||
paths:
|
||||
- packages/plugin-sdk/src
|
||||
- packages/plugin-package-contract/src
|
||||
|
||||
paths-ignore:
|
||||
- "**/node_modules"
|
||||
- "**/coverage"
|
||||
- "**/*.generated.ts"
|
||||
- "**/*.bundle.js"
|
||||
- "**/*-runtime.js"
|
||||
- "**/*.test.ts"
|
||||
- "**/*.test.tsx"
|
||||
- "**/*.e2e.test.ts"
|
||||
- "**/*.e2e.test.tsx"
|
||||
- "**/*test-support*"
|
||||
- "**/*test-helper*"
|
||||
- "**/*mock*"
|
||||
- "**/*fixture*"
|
||||
- "**/*bench*"
|
||||
21
.github/workflows/codeql-critical-quality.yml
vendored
21
.github/workflows/codeql-critical-quality.yml
vendored
@@ -227,3 +227,24 @@ jobs:
|
||||
uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
|
||||
with:
|
||||
category: "/codeql-critical-quality/plugin-boundary"
|
||||
|
||||
plugin-sdk-package-contract:
|
||||
name: Critical Quality (plugin-sdk-package-contract)
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
with:
|
||||
submodules: false
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
|
||||
with:
|
||||
languages: javascript-typescript
|
||||
config-file: ./.github/codeql/codeql-plugin-sdk-package-contract-critical-quality.yml
|
||||
|
||||
- name: Analyze
|
||||
uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
|
||||
with:
|
||||
category: "/codeql-critical-quality/plugin-sdk-package-contract"
|
||||
|
||||
@@ -307,7 +307,10 @@ understanding, image-generation, and media-generation runtime contracts under
|
||||
the separate `/codeql-critical-quality/web-media-runtime-boundary` category. The
|
||||
plugin-boundary job scans loader, registry, public-surface, and Plugin SDK
|
||||
entrypoint contracts under a separate `/codeql-critical-quality/plugin-boundary`
|
||||
category. Keep the workflow separate from security so quality findings can be
|
||||
category. The plugin-sdk-package-contract job scans the published package-side
|
||||
Plugin SDK source and plugin package contract helpers under the separate
|
||||
`/codeql-critical-quality/plugin-sdk-package-contract` category. Keep the
|
||||
workflow separate from security so quality findings can be
|
||||
scheduled, measured, disabled, or expanded without obscuring security signal.
|
||||
Swift, Python, and bundled-plugin CodeQL expansion should be added back as
|
||||
scoped or sharded follow-up work only after the narrow profiles have stable
|
||||
|
||||
Reference in New Issue
Block a user