Skip to content

API Reference parrot_tools.security.parsers.checkov

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.security.parsers.checkov

View source

Catalog-level Checkov JSON parser.

Parses Checkov's check_type / results JSON format into the catalog's ParsedReport.

Class CheckovParser

Catalog-level parser for Checkov JSON reports.

Accepts both single-check-type {check_type, results, ...} and a list of per-check-type objects (Checkov can produce either).

Attributes:

Attribute Type Description
parser_version str Fixed at "1.0.0" for v1 of this catalog.

Method CheckovParser.parse

Parse Checkov JSON into a ParsedReport.

parse(content: bytes | Path) -> ParsedReport

Parameter Type Default Description
content bytes | Path Raw Checkov JSON bytes or path to the JSON file.

Returns: ParsedReport — Deterministic ParsedReport.

Method CheckovParser.extract_section

Extract a named section from the Checkov JSON report.

extract_section(content: bytes | Path, section: str) -> dict

Parameter Type Default Description
content bytes | Path Raw Checkov JSON bytes or path to the JSON file.
section str One of "summary", "critical", "high", "medium", "low", "executive", "full".

Returns: dict — Dictionary with section-specific content.

Raises:

  • ValueError — If section is not in the supported set.

Alias ParsedReport

Re-exported from parrot_tools.security.parsers._types.ParsedReport.

Alias load_bytes

Re-exported from parrot_tools.security.parsers._types.load_bytes.

Alias sort_findings

Re-exported from parrot_tools.security.parsers._types.sort_findings.

Alias validate_section

Re-exported from parrot_tools.security.parsers._types.validate_section.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally