mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-04 15:53:34 +00:00
Summary: - The PR adds a `process-exec-boundary` CodeQL high-security shard, wires it into the CodeQL workflow, expands PR path triggers for process-owning plugin/script paths, and updates CI docs. - PR surface: Docs +1, Config +87. Total +88 across 3 files. - Reproducibility: not applicable. this is CI/security-scanner configuration rather than a runtime bug. The behavior is source-reviewable and the exact-head `Security High (process-exec-boundary)` check passed. Automerge notes: - No ClawSweeper repair was needed after automerge opt-in. Validation: - ClawSweeper review passed for head066d54b633. - Required merge gates passed before the squash merge. Prepared head SHA:066d54b633Review: https://github.com/openclaw/openclaw/pull/92667#issuecomment-4698545987 Co-authored-by: Mason Huang <masonxhuang@tencent.com> Approved-by: hxy91819
133 lines
5.0 KiB
YAML
133 lines
5.0 KiB
YAML
name: CodeQL
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
profile:
|
|
description: CodeQL security profile to run
|
|
required: false
|
|
default: all
|
|
type: choice
|
|
options:
|
|
- all
|
|
- security
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
paths:
|
|
- ".github/actions/**"
|
|
- ".github/codeql/**"
|
|
- ".github/workflows/**"
|
|
- "extensions/acpx/src/**"
|
|
- "extensions/bonjour/src/advertiser.ts"
|
|
- "extensions/browser/src/browser/chrome-mcp.ts"
|
|
- "extensions/browser/src/browser/chrome.executables.ts"
|
|
- "extensions/browser/src/browser/chrome.ts"
|
|
- "extensions/codex/src/app-server/sandbox-exec-server/**"
|
|
- "extensions/codex/src/app-server/transport-stdio.ts"
|
|
- "extensions/codex/src/node-cli-sessions.ts"
|
|
- "extensions/codex-supervisor/src/json-rpc-client.ts"
|
|
- "extensions/file-transfer/src/**"
|
|
- "extensions/google-meet/src/**"
|
|
- "extensions/imessage/src/**"
|
|
- "extensions/memory-core/src/memory/qmd-manager.ts"
|
|
- "extensions/memory-wiki/src/obsidian.ts"
|
|
- "extensions/microsoft-foundry/cli.ts"
|
|
- "extensions/ollama/src/wsl2-crash-loop-check.ts"
|
|
- "extensions/qa-lab/src/**"
|
|
- "extensions/signal/src/daemon.ts"
|
|
- "extensions/tts-local-cli/speech-provider.ts"
|
|
- "extensions/voice-call/src/**"
|
|
- "packages/**"
|
|
- "scripts/**"
|
|
- "src/**"
|
|
push:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: "0 6 * * *"
|
|
|
|
concurrency:
|
|
group: codeql-${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && format('manual-{0}', github.run_id) || github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || format('ref-{0}', github.ref) }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
|
|
|
|
env:
|
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
|
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
jobs:
|
|
security-high:
|
|
name: Security High (${{ matrix.category }})
|
|
if: ${{ (github.event_name != 'pull_request' || !github.event.pull_request.draft) && (github.event_name != 'workflow_dispatch' || inputs.profile == 'all' || inputs.profile == 'security') }}
|
|
runs-on: ${{ matrix.runs_on }}
|
|
timeout-minutes: ${{ matrix.timeout_minutes }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- language: javascript-typescript
|
|
category: core-auth-secrets
|
|
runs_on: ubuntu-24.04
|
|
timeout_minutes: 25
|
|
config_file: ./.github/codeql/codeql-core-auth-secrets-critical-security.yml
|
|
- language: javascript-typescript
|
|
category: channel-runtime-boundary
|
|
runs_on: ubuntu-24.04
|
|
timeout_minutes: 25
|
|
config_file: ./.github/codeql/codeql-channel-runtime-boundary-critical-security.yml
|
|
- language: javascript-typescript
|
|
category: network-ssrf-boundary
|
|
runs_on: ubuntu-24.04
|
|
timeout_minutes: 25
|
|
config_file: ./.github/codeql/codeql-network-ssrf-boundary-critical-security.yml
|
|
- language: javascript-typescript
|
|
category: mcp-process-tool-boundary
|
|
runs_on: ubuntu-24.04
|
|
timeout_minutes: 25
|
|
config_file: ./.github/codeql/codeql-mcp-process-tool-boundary-critical-security.yml
|
|
- language: javascript-typescript
|
|
category: process-exec-boundary
|
|
runs_on: ubuntu-24.04
|
|
timeout_minutes: 25
|
|
config_file: ./.github/codeql/codeql-process-exec-boundary-critical-security.yml
|
|
- language: javascript-typescript
|
|
category: plugin-trust-boundary
|
|
runs_on: ubuntu-24.04
|
|
timeout_minutes: 25
|
|
config_file: ./.github/codeql/codeql-plugin-trust-boundary-critical-security.yml
|
|
- language: actions
|
|
category: actions
|
|
runs_on: ubuntu-24.04
|
|
timeout_minutes: 10
|
|
config_file: ./.github/codeql/codeql-actions-critical-security.yml
|
|
steps:
|
|
- name: Checkout
|
|
if: ${{ matrix.category != 'actions' }}
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
submodules: false
|
|
|
|
- name: Checkout Actions security sources
|
|
if: ${{ matrix.category == 'actions' }}
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
submodules: false
|
|
sparse-checkout: |
|
|
.github/actions
|
|
.github/workflows
|
|
.github/codeql
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
config-file: ${{ matrix.config_file }}
|
|
|
|
- name: Analyze
|
|
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
|
|
with:
|
|
category: "/codeql-security-high/${{ matrix.category }}"
|