validate_project_ci_lint
Check a project's GitLab CI configuration for errors before applying it. This read-only lint validates .gitlab-ci.yml content and reports invalid identifiers or missing resources.
Instructions
Validate an existing .gitlab-ci.yml configuration 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 |
|---|---|---|---|
| dry_run | No | Run pipeline creation simulation | |
| project_id | Yes | Project ID or URL-encoded path | |
| content_ref | No | Commit SHA, branch, or tag to read the existing CI config from | |
| dry_run_ref | No | Branch or tag context for dry_run validation | |
| include_jobs | No | Include jobs in the lint response |