allzweckcontainer/.woodpecker/lint.yml
Renovate Bot fb01e7ba2a chore(deps): update zricethezav/gitleaks docker tag to v8.18.2 (#14)
Co-authored-by: Renovate Bot <renovate@mgrote.net>
Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-02-01 21:44:48 +01:00

36 lines
814 B
YAML

---
steps:
gitleaks:
image: zricethezav/gitleaks:v8.18.2
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
...