diff options
Diffstat (limited to 'tasks/shellcheck')
-rw-r--r-- | tasks/shellcheck/task.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tasks/shellcheck/task.yml b/tasks/shellcheck/task.yml new file mode 100644 index 0000000..3a9c40d --- /dev/null +++ b/tasks/shellcheck/task.yml @@ -0,0 +1,25 @@ +--- +platform: linux +image_resource: + type: registry-image + source: + repository: alpine + tag: latest + +inputs: + - name: repo + +run: + path: ash + args: + - -eufo + - pipefail + - -c + - | + apk add --no-progress --no-interactive shellcheck findutils + shellcheck --version + find repo/ \ + -type f \ + -name '*.sh' \ + -print0 |\ + xargs -r0 shellcheck -x |