ci: add shellcheck

ci: remove hadolint

ci: shellcheck: ignore friedhof

ci: syntax
This commit is contained in:
Michael Grote 2024-01-29 12:13:07 +01:00
parent 1f773a4727
commit 6f999aa798
2 changed files with 28 additions and 0 deletions

View file

@ -1,6 +1,8 @@
---
depends_on:
- gitleaks
- lint
steps:
ansible-lint:
image: quay.io/ansible/creator-ee@sha256:90298d88bc38f057e199523b8143c2c4cf9c159547ef93cf62d8861390c5600a

26
.woodpecker/lint.yml Normal file
View file

@ -0,0 +1,26 @@
---
steps:
gitleaks:
image: zricethezav/gitleaks:v8.18.1@sha256:6945c62ca019ead32bc337ab0c9fd055e98d82961765d38b7ccccc84dae95d0f
commands:
- gitleaks detect --no-git --verbose --source $CI_WORKSPACE
when:
event:
exclude:
- tag
shellcheck:
image: registry.mgrote.net/allzweckcontainer
commands:
- |
find . -type f -not -path './.git/*' -not -path './collections/*' -not -path './friedhof/*' -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
...