Create woodpecker-lint plugin for linting CI pipeline files #75

Open
opened 2026-11-07 21:28:45 +00:00 by martin · 0 comments
Owner

Description

Create a reusable Woodpecker CI plugin that lints Woodpecker pipeline configuration files from the checked-out CI workspace. This should make it straightforward to validate pipeline files as a CI step.

Design

Consider wrapping woodpecker-cli lint and follow the existing plugin packaging conventions. Support configurable configuration paths, with sensible defaults for standard Woodpecker configuration files and directories. Print actionable lint diagnostics in the CI logs and propagate validation failures to the step exit status.

Acceptance criteria

  • The plugin can lint Woodpecker pipeline YAML files in the CI workspace.
  • Users can configure which configuration file or directory to lint; default discovery behavior is documented.
  • Invalid configurations produce clear diagnostics and a nonzero exit status; valid configurations succeed.
  • The plugin is packaged as an OCI image using the repository’s existing conventions.
  • Documentation includes supported settings and an example Woodpecker CI step.
  • Tests or integration coverage demonstrate successful linting and failure on invalid configuration.
## Description Create a reusable Woodpecker CI plugin that lints Woodpecker pipeline configuration files from the checked-out CI workspace. This should make it straightforward to validate pipeline files as a CI step. ## Design Consider wrapping `woodpecker-cli lint` and follow the existing plugin packaging conventions. Support configurable configuration paths, with sensible defaults for standard Woodpecker configuration files and directories. Print actionable lint diagnostics in the CI logs and propagate validation failures to the step exit status. ## Acceptance criteria - The plugin can lint Woodpecker pipeline YAML files in the CI workspace. - Users can configure which configuration file or directory to lint; default discovery behavior is documented. - Invalid configurations produce clear diagnostics and a nonzero exit status; valid configurations succeed. - The plugin is packaged as an OCI image using the repository’s existing conventions. - Documentation includes supported settings and an example Woodpecker CI step. - Tests or integration coverage demonstrate successful linting and failure on invalid configuration.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Personal/woodpecker-plugins#75
No description provided.