Skip to content

Commit eccc8e3

Browse files
committed
Update Shellcheck and GolangCI-lint commands to match repo guidelines
Signed-off-by: Madalina Lazar <madalina.lazar@intel.com>
1 parent 3744db2 commit eccc8e3

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/static-analysis.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
name: Shellcheck
4141
runs-on: ${{ inputs.runsOn }}
4242
steps:
43-
- uses: actions/checkout@v2
44-
- name: Run ShellCheck
45-
uses: ludeeus/action-shellcheck@master
46-
with:
47-
scandir: ${{ inputs.scanDir }}
48-
ignore_paths: ${{ inputs.ignoreDir }}
43+
- uses: actions/checkout@v3
44+
- run: |
45+
wget -q https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz
46+
tar -xvf shellcheck-stable.linux.x86_64.tar.xz
47+
shellcheck-stable/shellcheck -V; find . -name '*.sh' -print -exec sha256sum {} \;; find . -type f \( -name "*.sh" \) -print -exec shellcheck-stable/shellcheck -a -s bash -S warning -f gcc {} \;;
48+
shell: bash
4949
5050
hadolint:
5151
name: Hadolint
@@ -90,11 +90,5 @@ jobs:
9090
with:
9191
go-version: ${{ inputs.goVersion }}
9292
- name: Running golang CI for ${{matrix.workingdir}}
93-
uses: golangci/golangci-lint-action@v2
94-
with:
95-
version: ${{ inputs.goLangCIVersion }}
96-
skip-go-installation: true
97-
working-directory: ${{matrix.workingdir }}
98-
# Additional linting tools can be added here
99-
args: --timeout=5m -v --color='always'
93+
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@${{ inputs.goLangCIVersion }} && cd ./${{ matrix.workingdir }} && golangci-lint run --timeout=5m -v --color='always' && cd ..
10094

0 commit comments

Comments
 (0)