From 786cd19a227a20b352b0764c9546c35fa5249ce8 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sat, 30 Dec 2023 05:28:03 +0100 Subject: add tasks --- tasks/shellcheck/task.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tasks/shellcheck/task.yml (limited to 'tasks/shellcheck/task.yml') 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 -- cgit v1.2.3