validate_ci_lint
Validate GitLab CI/CD YAML content to catch configuration errors before applying changes. Read-only linting returns errors for invalid identifiers or permissions, letting you verify pipeline syntax safely.
Instructions
Validate provided GitLab CI/CD YAML content for a project. Use this to check configuration without applying it; choose a create or update tool only after validation succeeds. It is read-only and does not mutate GitLab data; missing resources, invalid identifiers, insufficient permission, and rate limits are returned as errors. When project_id or group_id is accepted, provide the numeric ID or complete URL-encoded path described by the schema; use required identifiers and pagination fields exactly as documented.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch or tag context for dry_run validation | |
| content | Yes | GitLab CI/CD YAML content to validate | |
| dry_run | No | Run pipeline creation simulation | |
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| project_id | Yes | Project ID or URL-encoded path | |
| include_jobs | No | Include jobs in the lint response |