allzweckcontainer/.woodpecker/lint.yml
Michael Grote 0747c2baec renovate: disabled digest pinning
---
image triggert sich sonst selbst
2024-01-29 14:44:38 +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
...