360 Secure SkillHub
360 安全技能中心

Pipelinegate

gh-pipelinegate是Green Helix工具的流水线编排工具,核心功能是将scan-text、scan-skill等7种工具串联成多步流程执行,支持遇错即停或持续执行两种模式。典型场景如构建安全扫描流水线,依次完成文本扫描、技能校验等环节。需先启动服务,通过POST API传入JSON格式的步骤列表及参数,返回包含执行状态、步骤统计及各步结果的JSON数据。

mirni
mirni
热度 33.82
最近更新 2026-05-11 17:42:41
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gh-pipelinegate
Metadata
name
gh-pipelinegate
description
Chain Green Helix tools into multi-step pipelines. Define a sequence of steps (scan-text, scan-skill, check-scope, validate, diff, check-env, convert) and PipelineGate executes them in order. Supports stop-on-error or continue-on-failure modes.
metadata
{"openclaw":{"emoji":"⛓️","requires":{"bins":["python"]},"install":[{"id":"pip","kind":"uv","packages":["fastapi","uvicorn","pydantic","pyyaml","jsonschema"]}]}}

PipelineGate

Chain multiple tools into a single pipeline call.

Start the server

uvicorn pipelinegate.app:app --port 8011

Run a security pipeline

curl -s -X POST http://localhost:8011/v1/run \
  -H "Content-Type: application/json" \
  -d '{
    "steps": [
      {"tool": "scan-text", "input": {"text": "Check this text"}},
      {"tool": "scan-skill", "input": {"skill_content": "---\nname: test\n---\nHello"}},
      {"tool": "check-scope", "input": {"skill_content": "---\nname: test\n---\nHello"}}
    ]
  }' | jq

Returns success (all steps passed), total_steps, completed_steps, and results (output per step).

Available tools

curl -s http://localhost:8011/v1/tools | jq '.tools[] | "\(.name): \(.description)"' -r

Tools: scan-text, scan-skill, check-scope, validate, diff, check-env, convert.

Error handling

By default, the pipeline stops on the first error. Set "stop_on_error": false to continue:

curl -s -X POST http://localhost:8011/v1/run \
  -H "Content-Type: application/json" \
  -d '{"steps": [{"tool": "scan-text", "input": {"text": "hi"}}], "stop_on_error": false}' | jq