





















@@ -10,16 +10,26 @@ on:
1010type: choice
1111options:
1212 - all
13+ - plugin-boundary
1314 - plugin-sdk-package-contract
1415 - plugin-sdk-reply-runtime
1516 - provider-runtime-boundary
1617 - session-diagnostics-boundary
18+pull_request:
19+types: [opened, synchronize, reopened, ready_for_review]
20+paths:
21+ - ".github/codeql/**"
22+ - ".github/workflows/codeql-critical-quality.yml"
23+ - "packages/plugin-package-contract/**"
24+ - "packages/plugin-sdk/**"
25+ - "src/plugin-sdk/**"
26+ - "src/plugins/**"
1727schedule:
1828 - cron: "30 6 * * *"
19292030concurrency:
21-group: codeql-critical-quality-${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && github.run_id || github.sha }}
22-cancel-in-progress: false
31+group: codeql-critical-quality-${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && github.run_id || github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
32+cancel-in-progress: ${{ github.event_name == 'pull_request' }}
23332434env:
2535FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
@@ -32,7 +42,7 @@ permissions:
3242jobs:
3343core-auth-secrets:
3444name: Critical Quality (core-auth-secrets)
35-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' }}
45+if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all') }}
3646runs-on: blacksmith-4vcpu-ubuntu-2404
3747timeout-minutes: 25
3848steps:
@@ -54,7 +64,7 @@ jobs:
54645565config-boundary:
5666name: Critical Quality (config-boundary)
57-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' }}
67+if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all') }}
5868runs-on: blacksmith-4vcpu-ubuntu-2404
5969timeout-minutes: 25
6070steps:
@@ -76,7 +86,7 @@ jobs:
76867787gateway-runtime-boundary:
7888name: Critical Quality (gateway-runtime-boundary)
79-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' }}
89+if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all') }}
8090runs-on: blacksmith-4vcpu-ubuntu-2404
8191timeout-minutes: 25
8292steps:
@@ -98,7 +108,7 @@ jobs:
9810899109channel-runtime-boundary:
100110name: Critical Quality (channel-runtime-boundary)
101-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' }}
111+if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all') }}
102112runs-on: blacksmith-4vcpu-ubuntu-2404
103113timeout-minutes: 25
104114steps:
@@ -120,7 +130,7 @@ jobs:
120130121131agent-runtime-boundary:
122132name: Critical Quality (agent-runtime-boundary)
123-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' }}
133+if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all') }}
124134runs-on: blacksmith-4vcpu-ubuntu-2404
125135timeout-minutes: 25
126136steps:
@@ -142,7 +152,7 @@ jobs:
142152143153mcp-process-runtime-boundary:
144154name: Critical Quality (mcp-process-runtime-boundary)
145-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' }}
155+if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all') }}
146156runs-on: blacksmith-4vcpu-ubuntu-2404
147157timeout-minutes: 25
148158steps:
@@ -164,7 +174,7 @@ jobs:
164174165175memory-runtime-boundary:
166176name: Critical Quality (memory-runtime-boundary)
167-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' }}
177+if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all') }}
168178runs-on: blacksmith-4vcpu-ubuntu-2404
169179timeout-minutes: 25
170180steps:
@@ -186,7 +196,7 @@ jobs:
186196187197session-diagnostics-boundary:
188198name: Critical Quality (session-diagnostics-boundary)
189-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' || inputs.profile == 'session-diagnostics-boundary' }}
199+if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all' || inputs.profile == 'session-diagnostics-boundary') }}
190200runs-on: blacksmith-4vcpu-ubuntu-2404
191201timeout-minutes: 25
192202steps:
@@ -208,7 +218,7 @@ jobs:
208218209219plugin-sdk-reply-runtime:
210220name: Critical Quality (plugin-sdk-reply-runtime)
211-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' || inputs.profile == 'plugin-sdk-reply-runtime' }}
221+if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all' || inputs.profile == 'plugin-sdk-reply-runtime') }}
212222runs-on: blacksmith-4vcpu-ubuntu-2404
213223timeout-minutes: 25
214224steps:
@@ -230,7 +240,7 @@ jobs:
230240231241provider-runtime-boundary:
232242name: Critical Quality (provider-runtime-boundary)
233-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' || inputs.profile == 'provider-runtime-boundary' }}
243+if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all' || inputs.profile == 'provider-runtime-boundary') }}
234244runs-on: blacksmith-4vcpu-ubuntu-2404
235245timeout-minutes: 25
236246steps:
@@ -252,7 +262,7 @@ jobs:
252262253263ui-control-plane:
254264name: Critical Quality (ui-control-plane)
255-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' }}
265+if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all') }}
256266runs-on: blacksmith-4vcpu-ubuntu-2404
257267timeout-minutes: 25
258268steps:
@@ -274,7 +284,7 @@ jobs:
274284275285web-media-runtime-boundary:
276286name: Critical Quality (web-media-runtime-boundary)
277-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' }}
287+if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all') }}
278288runs-on: blacksmith-4vcpu-ubuntu-2404
279289timeout-minutes: 25
280290steps:
@@ -296,7 +306,7 @@ jobs:
296306297307plugin-boundary:
298308name: Critical Quality (plugin-boundary)
299-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' }}
309+if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (github.event_name == 'pull_request' || github.event_name != 'workflow_dispatch' || inputs.profile == 'all' || inputs.profile == 'plugin-boundary') }}
300310runs-on: blacksmith-4vcpu-ubuntu-2404
301311timeout-minutes: 25
302312steps:
@@ -318,7 +328,7 @@ jobs:
318328319329plugin-sdk-package-contract:
320330name: Critical Quality (plugin-sdk-package-contract)
321-if: ${{ github.event_name != 'workflow_dispatch' || inputs.profile == 'all' || inputs.profile == 'plugin-sdk-package-contract' }}
331+if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (github.event_name == 'pull_request' || github.event_name != 'workflow_dispatch' || inputs.profile == 'all' || inputs.profile == 'plugin-sdk-package-contract') }}
322332runs-on: blacksmith-4vcpu-ubuntu-2404
323333timeout-minutes: 25
324334steps:
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。