openclaw-skills/grype-syft-sbom-scanner/SKILL.md
用于通过 Syft 生成 SBOM,并用 Grype 扫描容器镜像、文件系统、软件包、归档和 SBOM 漏洞。
npx skillsauth add seaworld008/commonly-used-high-value-skills grype-syft-sbom-scannerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the user wants SBOM-first vulnerability management, container image scanning, package inventory, or repeatable vulnerability scans using Anchore open-source tools Syft and Grype.
Good trigger phrases:
Use one of these modes:
Prefer SBOM-first when the result will be attached to a release, shared with customers, or compared later.
syft version
grype version
If missing, install from official Anchore channels. Pin versions in CI when release evidence matters.
For a container image:
syft registry.example.com/app:1.2.3 -o cyclonedx-json=sbom.cdx.json
For a local source or filesystem directory:
syft dir:. -o spdx-json=sbom.spdx.json
For Syft JSON:
syft packages . -o syft-json=sbom.syft.json
Scan an image directly:
grype registry.example.com/app:1.2.3
Scan a directory:
grype dir:.
Scan an SBOM:
grype sbom:sbom.cdx.json
Fail on high-severity findings in CI:
grype registry.example.com/app:1.2.3 --fail-on high
grype sbom:sbom.cdx.json -o json > grype-results.json
grype sbom:sbom.cdx.json -o sarif > grype-results.sarif
grype sbom:sbom.cdx.json -o table
Retain:
For each finding, capture:
Prioritize runtime packages over build-only layers unless the build system is also in scope.
release-security/
image-digest.txt
sbom.cdx.json
grype-results.json
grype-results.sarif
scanner-versions.txt
accepted-risk.md
name: sbom-vuln-scan
on: [pull_request]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate SBOM
run: syft dir:. -o cyclonedx-json=sbom.cdx.json
- name: Scan SBOM
run: grype sbom:sbom.cdx.json --fail-on high
syft old-image:tag -o syft-json=old.sbom.json
syft new-image:tag -o syft-json=new.sbom.json
grype sbom:old.sbom.json -o json > old.vulns.json
grype sbom:new.sbom.json -o json > new.vulns.json
Summarize deltas by new, fixed, unchanged, and severity-changed vulnerabilities.
tools
飞书审批:查询和处理审批待办/已办/实例,搜索可发起审批定义、查看定义详情并发起原生审批实例。当用户要处理审批任务、查看审批实例、搜索或发起审批时使用。审批待办不是飞书任务;非审批类待办走 lark-task。不负责创建审批定义;三方审批定义不走原生提单。
development
Use when a user needs reproducible repository sizing, language composition, file counts, or code-versus-comment ratios with pygount; record exclusions and verify measurement scope before interpreting results.
development
Route a development task to the official Hermes Agent skill, Graphify Codex artifact set, Open GSD Core bundle, or optional GSD Pi bundle without duplicating their installers or state machines.
development
飞书 / Lark 通讯录:按姓名 / 邮箱解析成 open_id,或按 open_id 反查姓名 / 部门 / 邮箱 / 联系方式 / 个人状态 / 签名,以及按关键词搜索当前用户可见的机器人 / 智能体(agent)。当用户提到一个名字要下一步发消息 / 排日程,或拿到 open_id 想查具体信息时使用。不负责部门树遍历、按部门列员工、组织架构图,这类需求走原生 OpenAPI。