• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

facebookincubator / TTPForge / 19306364076

12 Nov 2025 05:33PM UTC coverage: 55.251%. First build
19306364076

Pull #574

github

meta-codesync[bot]
Add ttpforge validate command (#574)

Summary:
Pull Request resolved: https://github.com/facebookincubator/TTPForge/pull/574

Implemented a new `validate` command for TTPForge that performs comprehensive static analysis and validation of TTP YAML files. This command helps ensure TTPs are correctly structured before execution.

The validator performs multiple types of checks:
- Structural validation (required fields, data types, YAML syntax)
- Preamble field validation (api_version, uuid, name)
- Step action validation (ensures required fields for each action type)
- Template variable detection and handling
- Integration with blocks package for runtime validation

The command supports single-file validation, with colored output for errors (red), warnings (yellow), and informational messages (blue). Template-based TTPs are handled gracefully with appropriate warnings when full validation requires runtime arguments.

Reviewed By: d0n601

Differential Revision: D85961391
Pull Request #574: Add ttpforge validate command

39 of 851 new or added lines in 29 files covered. (4.58%)

2778 of 5028 relevant lines covered (55.25%)

14.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pkg/validation/steps/ttp.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc