Publish external findings
Use this workflow for third-party scanner evidence. For “publish these findings,” start with the local workbench. For “import,” acquire the requested records and store them locally. For “import and publish,” publish the selection returned by the import. Use the “Import external findings” section of docs/sdk.md in the installed @openai/codex-security package. For a global npm install, its directory is $(npm root --global)/@openai/codex-security. Run SDK snippets from that trusted directory with absolute paths to the checkout and reports.
Submit saved Codex findings to AWS Continuum
Use this path when the user requests sending local scan findings to Continuum for validation. Resolve the completed scan with codex-security scans list --json and inspect codex-security scans show SCAN_ID --json for its occurrence IDs. Use the user's selected project file with scan.validation.provider set to continuum and the intended environment_id. For an authorized selection, run codex-security validate --scan SCAN_ID -c PROJECT_FILE OCCURRENCE_ID --format json from the checkout. Pass each requested ID. Omit IDs only when the user requests all open findings from that scan.
Report each Codex itemId, AWS finding ID, associated issue link when present, verdict and resultScope. Attribute an issue-scoped verdict to the AWS issue even when it has one contributor. A finding ID with UNAVAILABLE means AWS accepted the finding and the assessment is incomplete. Report the reason. To resume, repeat the command with the same scan, selected IDs, destination and host state. To collect the AWS evidence, use the import instructions below with the returned AWS finding ID. Validation guide
Select the evidence
Identify whether the user wants a fresh scan, a previous scan or CI artifact, existing upstream issues, or records already in the workbench. Carry forward the selected repository, project, ref, products, filters, and exact finding IDs. A local scan can produce different findings from a hosted backlog or an earlier build.
For a fresh scan, look for the relevant executable in the environment where it will run. Inspect its help when needed. For an existing hosted selection, inspect the tools actually available in this session or use a signed-in vendor CLI or authorized read API. Verify access with a scoped read or a documented status command. Use the vendor’s credential store or supported environment variables and keep credentials out of command arguments and imported evidence. Reuse a complete previous result from the same scope. Follow pagination, retain native records, and explain missing IDs or incomplete coverage. Ask for a missing account or repository only when the selection cannot be resolved from the available evidence.
| Source | Acquisition guidance |
|---|---|
| Trivy | For a fresh filesystem vulnerability scan, run trivy fs --scanners vuln --format json --output REPORT.json . from the chosen directory. For an earlier scan, read its repository or filesystem schema-v2 JSON or gzip artifact. Supply the checkout-relative --trivy-scan-root for filesystem reports. |
| Semgrep CLI or CI | For a fresh Code scan, use the installed CLI with the selected rules, e.g. semgrep scan --config RULES --json-output REPORT.json .. For an existing CI job, use its Code JSON or self-contained SARIF artifact. |
| Semgrep Guardian MCP | Use the connected Guardian tool get_semgrep_sast_findings or get_semgrep_supply_chain_findings with the deployment, repository, full ref, and selected filters. Match exact string finding IDs. Preserve the original request and selected tool rows in the Guardian capture. |
| Semgrep hosted AppSec Platform MCP | Use semgrep_account and ProjectsService_GetProject to verify the project SCM URL. Use IssuesService_ListIssues scoped to that project, full ref, and ISSUE_TYPE_SAST, and retain the selected string issue IDs and original rows. Follow the hosted MCP capture format. Guardian and hosted Platform IDs use distinct namespaces. |
| Semgrep Platform Web API | For a whole project and ref use codex-security import semgrep PROJECT --deployment DEPLOYMENT --ref REF --format json. For selected SAST IDs use the original project response and selected findings pages. |
| GitHub | The signed-in GitHub CLI collector codex-security import github OWNER/REPO accepts repeated --github-alert NUMBER or a --github-ref REF. Use import github-advisories for advisories. For Dependabot, export full paginated repository REST alert objects through the available GitHub connection. Keep separate source keys for these three families. |
| Snyk | For a monitored Open Source project use codex-security import snyk PROJECT_ID --org ORG_ID --source-repository-url URL --format json. Add --snyk-product code for a monitored Code project. For a fresh dependency scan use native snyk test JSON or the signed-in Snyk plugin's SCA export from the requested root. Keep acquisition formats in distinct namespaces. |
| AWS Continuum | Use codex-security import continuum ENVIRONMENT_ID --format json to collect all environment issues, linked findings, and issue-level EVIDENCE and VALIDATION_EVIDENCE artifacts. The environment must have exactly one Git repository, which the report records. S3 sources may also be present. Override the AWS CLI defaults with --aws-profile and --aws-region as needed. Verify that the issues belong to the intended repository before importing with publish findings --provider continuum. Supply the verified --source-repository-url for saved reports without a repository URL. For attack-path scoring, give $attack-path-analysis the selected issue's stored .evidence, including its validation artifacts. Continuum guide |
| Checkmarx | Export a completed Checkmarx One scan as CLI JSON or self-managed CxSAST as XML. Follow the collector instructions for the selected product, scan, and verified owning project. |
| Wiz | Use the connected Wiz tools or API to retrieve the selected repository findings by occurrence ID, or use a detailed report. JSON covers multiple finding families. Detailed CSV covers repository package vulnerabilities. Wiz input profiles |
| AWS Continuum single finding | Run codex-security import continuum ENVIRONMENT_ID --finding-id FINDING_ID --source-root CHECKOUT --repository-name AWS_SOURCE_NAME --format json for one finding and its repository patches. A unique match by findingId in perFindingResults supplies the finding verdict. Attribute aggregate evidence to the issue identified by validationIssue in the capture (source_data.validation_issue after import). Use an absolute checkout path and the exact AWS source name. Omit --repository-name when the environment has exactly one Git repository and no S3 sources. The CLI verifies that with GetEnvironment before collecting the finding. Publish the JSON with --provider continuum and the verified --source-repository-url. Continuum guide |
| CrowdStrike FCS | Use a saved FCS CLI 4.x fcs scan iac JSON report, such as a CI artifact from the FCS GitHub Action. For a fresh scan, run the installed fcs CLI from the directory to import into: fcs scan iac --path . --report-formats json --output-path DIR, where DIR is an existing private directory outside it whose name has no dot. For a remote git:: URL, add ?ref=COMMIT and import into a checkout of that commit, or into its subdirectory for a //subdir suffix. A nonzero exit can mean that detections matched --fail-on or that the scan failed; import only the *-scan-results.json file named in Results saved to file. If fcs is not on PATH, do not install it or pass Falcon credentials in arguments; ask for a saved report. Import with --to local only. The directory does not need to be a Git checkout, but each detection's file must have the content that FCS scanned. Add --source-repository-url only for a verified URL. A git::https:// report already names its repository, and a different URL stops the import. CrowdStrike guide |
| Tenzai | Read an existing Test with tenzai --output json --no-ui-links finding list --app-id APP_UUID --test-id TEST_UUID --paginate. Select only findings for the checkout; a Test may cover multiple source repositories. Import with --provider tenzai --to local --source-repository-url URL, where the verified source URL matches a Git fetch remote. Keep native UUIDs and runtime evidence; code-reference paths belong to the source bundle and are not checkout locations. Tenzai guide |
| Other built-in readers | OpenGrep accepts native scan JSON including scanner errors. Endor uses endorctl Finding JSON with complete records. Inspector uses Inspector2 ListFindings for one Code Security repository. Black Duck uses BOM-6 vulnerable components for one project version. Veracode uses paginated STATIC policy findings for one application. Tenable uses a selected Code Repository inventory capture and verified HTTPS clone URL. Provider guides and identity rules |
SonarQube Cloud issues
Retrieve existing Sonar issues with the signed-in sonar CLI. The Sonar plugin can supply selected issue keys; collect full issue and flow evidence for that same project, branch or pull request. Preview with codex-security import sonar --sonar-project PROJECT --sonar-branch BRANCH --sonar-issue KEY --dry-run --format json (repeat --sonar-issue for more keys). Use the preview's saved capture for an approved import. For findings already stored in the workbench, select them directly. Sonar workflow
Import locally
Use the matching native SDK reader or the existing CLI, for example codex-security publish findings REPORT.json --to local --provider trivy --source-key PROJECT/BRANCH --repository CHECKOUT --trivy-scan-root . --dry-run --format json. Use a source key stable across repeated imports of this selection. Review the repository, evidence, exclusions and scanner errors. For the requested write, drop --dry-run and use --yes when approved. Keep the import ID and finding versions from the result. A partial import exits with code 1. Check the saved findings and report the exclusions before retrying.
For an unfamiliar format, inspect actual rows and write a parser in the language appropriate to the source. Pass the findings, read count and exclusions to prepareNormalizedLocalImport with the checkout, provider and source key. Give each occurrence a stable source ID, preserve relevant native evidence and repository identity, and account for every selected row with either evidence or a numbered exclusion. Report skipped or missing items. A repeated import can include unchanged findings; the import ID identifies the entire stored selection.
Publish to Cloud
Use listLocalExternalImports({ repository }) to find an import by its timestamp, including imports of unchanged findings. Call prepareStoredFindingsPublication(selection, { repository: cloudRepository }) with that import ID or the selected finding IDs and versions. Show the account, destination, evidence and exclusions. After the user confirms the preview, call group.publish(group.reviewId) for each approved group.
For a private inbox, check the import job status and counts. For repository requests, check verification, unacknowledged records and failures. Keep each approved group’s selection, destination and review ID. On interruption, reprepare the interrupted and unstarted groups, using the saved review IDs. For an earlier client’s pending upload, finish with its original build or verify which findings reached Cloud before preparing another submission. Report completed groups from their receipts. A changed review ID requires a fresh preview. Cloud receipts and retry behavior
