publish-findings
它能做什么
这项技能把其他安全扫描器的发现导入 Codex Security 工作台或 Cloud。适合已经在使用某个扫描器,并希望将其结果集中管理的团队。
适用场景
- ✓当你有一份扫描器报告,希望导入 Codex Security 时。
- ✓当你想把选定的 SonarQube 问题导入工作台或 Cloud 时。
- ✓当你希望在保存任何发现之前预览导入内容的时候。
技能链接
https://github.com/openai/codex-security/blob/main/plugins/codex-security/skills/publish-findings/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请预览这个代码仓库上次扫描中的 SonarQube 问题,然后把选定的问题导入工作台。”
每周 5 个新技能,1 分钟读完。
工作原理
在导入任何内容之前,该技能会检查环境中是否已启用导入。然后它会使用命令行工具预览这些发现,将其对应到源代码,并保存到所选的目标位置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Publish external findings
Before acquiring or importing findings, check for CODEX_SECURITY_ENABLE_EXTERNAL_IMPORTS=1 in the command environment. If it is unset or has another value, stop and ask the user to enable imports.
Use codex-security import sonar for live SonarQube Cloud issues or a capture saved by that command. Use codex-security publish findings for native scanner exports, including Sonar /api/issues/search pages with --provider sonar. Select the requested destination. The CLI owns source mapping, persistence, and Cloud authentication and retries. Do not implement another store or uploader or put credentials in command arguments.
Select the evidence
Use a supplied report, connected tool or signed-in CLI that provides the requested native records for the selected account, repository and ref. Follow the scanner import guide to narrow broader reports and verify the selection in the JSON preview. Use a direct API only when the provider guide supports its response for the selected destination. Otherwise ask for a supported report. A fresh scan produces new findings. Keep the original records and complete the requested pagination. A JSON summary or a different product's API response is not interchangeable with the documented report. Use SARIF or CSV only when the installed provider reader supports that profile and native JSON is unavailable or the user supplies that format. Do not convert a richer JSON report to SARIF for import.
Use the same acquisition format for repeated imports. Check the provider's identity rules before switching formats: another format can create a separate record or replace a richer snapshot with less detail. Importing findings does not reconcile equivalent vulnerabilities across formats. --format json controls command output, not the input report format; readers detect their supported inputs.
Import locally
Use a local repository path with --repository. No Cloud login is required.
codex-security publish findings /path/to/selected-wiz-findings.json \
--to local --repository /path/to/project --provider wiz \
--source-key TENANT_ID/vulnerability-finding --dry-run --format json
Show the repository, source namespace, normalized evidence, and exclusions. After confirmation, repeat without --dry-run, adding --yes. Keep approval when the user already approved this preview and the input and destination are unchanged.
Read the stored evidence with codex-security findings imported /path/to/project --format json; the repository defaults to the current directory. Report created, updated, unchanged, and excluded counts, including exclusion reasons when the command exits 1.
Local records remain unassessed source evidence, separate from findings list and completed scans. Repeated imports use the same repository/provider/source-key/source-ID identity; omitted records remain stored. When a source repository URL and local Git remotes are available, the URL must match a remote. Local import does not publish to Cloud or automatically investigate or patch findings.
Amazon Inspector repository findings
Use --provider inspector and --source-repository-url with a complete Inspector2 ListFindings export for one Code Security repository. If it contains only a project ARN and name, pass the full --inspector-project-arn ARN verified for that Git URL in the SCM integration. Supply the same ARN when resuming a pending Cloud submission. Self-managed GitLab is supported locally.
Black Duck SCA project-version vulnerabilities
Use --provider blackduck for a BOM-6 vulnerable-components export from one project version. Supply --source-repository-url after verifying the project version maps to that repository. Keep the same source key on replay and preview the destination before importing.
Veracode Static Analysis policy findings
Use --provider veracode with all Findings API pages for one application’s STATIC policy findings. Verify that the application maps to the repository named by --source-repository-url. Keep the source key stable for that application and preview the import before writing.
Endor Labs findings
Use authenticated endorctl for one verified project and context. Omit --field-mask to keep complete native Finding objects. Replace /path/to/private/reports with a private directory outside the checkout.
常见问题
为什么它需要环境设置?
外部导入需要主动开启,因此该技能会停下来,请你先启用导入。
导入之前我能看到将要导入的内容吗?
可以。该技能会显示 JSON 预览,让你在导入之前核实所选内容。
凭据会出现在命令中吗?
不会。命令行工具负责连接和登录,因此凭据不会出现在命令参数中。
详情
作者的原始描述
Requires explicit opt-in with CODEX_SECURITY_ENABLE_EXTERNAL_IMPORTS=1. Preview and import scanner findings, including issues selected in the SonarQube plugin, into the local workbench or Codex Security Cloud.
repo: openai/codex-security
热度
- GitHub 星标
- 11k
- 排名
- #11754
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
assess-patch-risk
11k帮你的智能体在合并之前评估代码补丁的风险,包括它影响什么、哪些测试覆盖它,以及它是否可以回滚。
attack-path-analysis
11k帮你的智能体追踪一项安全发现,从入口点到目标,然后判断其真实影响,以及是否应当报告。
cloud-findings
11k让你的智能体从已连接的账户中读取已有的 Codex Security Cloud 发现、报告和扫描状态,且不做任何更改。
deep-security-scan
11k帮你的智能体对代码仓库或文件夹进行深入、多轮的安全扫描,通过重复独立的检查,并汇总经过验证的发现。