HUB
Sign inSign up
drone-yamllint logo

adamlui/drone-yamllint

By adamlui

•Updated about 10 hours ago

https://codeberg.org/adamlui/drone-yamllint

Image
Security
Languages & frameworks
Developer tools
0

207

adamlui/drone-yamllint repository overview

⁠ drone-yamllint

[Latest Build] [SonarQube Security Rating] [License: MIT] [Supports Drone / Harness / Woodpecker]⁠

Drone⁠ / Harness⁠ / Woodpecker⁠ plugin to run yamllint⁠ on your repo.


⁠ Quick start

⁠Drone CI

.drone.yml

kind: pipeline
name: default

trigger:
  event: [pull_request, push]
  paths: ['**/*.{yml,yaml}']

steps:
  - name: yamllint
    image: adamlui/drone-yamllint:v1.0.1
⁠Woodpecker CI

.woodpecker/yamllint.yml

when:
  - event: manual
  - event: [pull_request, push]
    path: { include: ['**/*.{yml,yaml}'] }

steps:
  - name: yamllint
    image: adamlui/drone-yamllint:v1.0.1
⁠Harness CI

.harness/yamllint.yaml

pipeline:
  stages:
    - identifier: default
      name: default
      steps:
        - identifier: yamllint
          name: yamllint
          spec:
            connectorRef: account.harnessImage
            image: adamlui/drone-yamllint:v1.0.1
            type: Plugin

⁠ Settings (17)

Note

YAML settings override matching config file settings where applicable.
⁠Example
  - name: yamllint
    image: adamlui/drone-yamllint:v1.0.1
    settings:
      config: .yamllint.yml
      strict: true
      format: github
      files: "**/*.yml **/*.yaml"
      ignore_patterns: "vendor/** dist/**"
      debug: true
yamllint (6)
SettingDescriptionDefault
configPath to a yamllint config file⁠.auto-detected
no_configDisable auto-discover config file.false
yamllint_argsAdditional raw args passed verbatim to the yamllint CLI⁠ (e.g. --no-warnings --strict).none
strictTreat warnings as errors.false
versionyamllint version⁠ to install. Accepts a SemVer⁠ pattern⁠.1.38.0
working_directoryDirectory to run yamllint from.repo root

File matching (6)
SettingDescriptionDefault
filesWhitespace-separated list of glob patterns to include (e.g. src/**).none
ignore_patternsWhitespace-separated list of glob patterns to exclude (e.g. vendor/** dist/**).none
ignore_pathPath to an ignore file (e.g. .yamllintignore).none
extensionsComma-separated file extensions to lint on pull requests.yml,yaml
all_filesLint all files, not just changed files on pull requests.false
base_branchBase branch that PRs are compared against.PR target branch

Findings (3)
SettingDescriptionDefault
formatLint findings output format⁠ (parsable⁠, standard⁠, colored⁠, auto⁠, github⁠).auto
colorColorize findings when format⁠ is not explicitly set.true
no_warningsReport errors only (suppress warnings).false

Plugin (2)
SettingDescriptionDefault
debugEnable shell tracing (set -x) of the plugin entrypoint.false
never_failExit 0 regardless of lint errors (so CI step always passes).false

⁠ Shield embed

[Linted by drone-yamllint]

⁠HTML
<a target="_blank" href="https://codeberg.org/adamlui/drone-yamllint/#readme">
    <img height=32 alt="[Linted by drone-yamllint]" src="https://img.shields.io/badge/Linted_by-drone--yamllint-black?logo=drone&logoColor=white&labelColor=464646&style=for-the-badge"></a>
⁠Markdown
[![[Linted by drone-yamllint]](https://img.shields.io/badge/Linted_by-drone--yamllint-black?logo=drone&logoColor=white&labelColor=464646&style=for-the-badge)](https://codeberg.org/adamlui/drone-yamllint/#readme)

⁠ Contributing

All contributions welcome! See docs/CONTRIBUTING.md⁠ to get started.
  1. Fork⁠ the repo > create a branch from main.
  2. Make your change (one contribution per branch).
  3. Open a pull request > describe what you changed and why.
⁠ Dev setup

You'll need Docker⁠ and (for local pipeline testing) the Drone CLI⁠.

git clone https://codeberg.org/adamlui/drone-yamllint.git
cd drone-yamllint

The plugin is built from the Dockerfile⁠ and runs via src/entrypoint.sh + src/utils/*.sh. If you change any of these, rebuild the image:

docker build -t adamlui/drone-yamllint:dev .
⁠ Test your change

Run the example pipeline locally:

drone exec --pipeline default

No Drone CLI? Test the image directly:

docker run --rm -v "$PWD:/app" -w /app adamlui/drone-yamllint:dev

⁠ Financial contributions

If you find this project useful, you can support its development:

[PayPal] [Ko-fi]


⁠ License

Copyright © 2026 Adam Lui⁠ under the MIT license⁠.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE


drone-ruff⁠ — Drone / Harness / Woodpecker plugin to run Ruff on your Python code.

drone-eslint⁠ — Drone / Harness / Woodpecker plugin to run ESLint on your repo.

drone-oxlint⁠ — Drone / Harness / Woodpecker plugin to run Oxlint (auto-installs ESLint plugins!)



Tag summary
Recent tags
Content type
Image
Digest
sha256:52deb343c…
Size
29.2 MB
Last updated
about 10 hours ago
docker pull adamlui/drone-yamllint:latest