aboutsummaryrefslogtreecommitdiff
path: root/tasks/shellcheck/task.yml
blob: 3a9c40de14c2bfc5963ac70beeea00abcc04bed2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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