generated from pandora/woodpecker-plugin.template
A woodpecker CI plugin which is verify workflow files.
- Lua 75.7%
- Dockerfile 17.2%
- Go 7.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
ci/woodpecker/push/change_log Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/tag/release Pipeline was successful
ci/woodpecker/cron/auto_merge Pipeline was successful
ci/woodpecker/cron/renovate Pipeline was successful
ci/woodpecker/cron/release Pipeline was successful
Merged automatically |
||
| lua | ||
| .gitignore | ||
| .markdownlint.json | ||
| .prettierrc | ||
| Containerfile | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
| renovate.json | ||
Validate workflow files
This plugin can be used repositories like
this. The plugin
list the YAML files in the workflows directory and validate the following:
- Check linting with
woodpecker-cli. - Check if specified images exist.
- Check if image is running as non-root.
Usage
It can be used at pull_request and push events.
when:
- event: [pull_request, push]
branch: main
path:
include:
- "workflows/**/*.yaml"
steps:
- name: Validate workflows
image: code.thinkaboutit.tech/pandora/workflow-checker.woodpecker
Settings
| Name | Default value | Description |
|---|---|---|
| base_dir | workflows | The directory where it is looking for YAML files |