httpd/.woodpecker/lint.yml
2024-02-02 12:45:17 +01:00

35 lines
814 B
YAML

---
steps:
gitleaks:
image: zricethezav/gitleaks:v8.18.1
commands:
- gitleaks detect --no-git --verbose --source $CI_WORKSPACE
when:
event:
exclude:
- tag
hadolint:
image: pipelinecomponents/hadolint:0.26.0
commands:
- hadolint Dockerfile
when:
event:
exclude:
- tag
shellcheck:
image: registry.mgrote.net/allzweckcontainer:latest
commands:
- |
find . -type f -not -path './.git/*' -not -path './collections/*' -exec file {} \; | while IFS= read -r line; do
if echo "$line" | grep -q "shell script"; then
file_path=$(echo "$line" | awk -F':' '{print $1}')
shellcheck "$file_path"
fi
done
when:
event:
exclude:
- tag
...