ci: Validate shellcheck archive
This avoids pulling in anything unexpected and then running it as part of the test and later on image build process. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
abb645f8e9
commit
6dd27e7c62
2
.github/workflows/next.yml
vendored
2
.github/workflows/next.yml
vendored
@ -7,6 +7,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
SHELLCHECK_VERSION: v0.7.1
|
SHELLCHECK_VERSION: v0.7.1
|
||||||
|
SHELLCHECK_SHA256: 64f17152d96d7ec261ad3086ed42d18232fcb65148b44571b564d688269d36c8
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
perform_tests:
|
perform_tests:
|
||||||
@ -34,6 +35,7 @@ jobs:
|
|||||||
- name: Install recent shellcheck
|
- name: Install recent shellcheck
|
||||||
run: |
|
run: |
|
||||||
wget -q https://github.com/koalaman/shellcheck/releases/download/$SHELLCHECK_VERSION/shellcheck-$SHELLCHECK_VERSION.linux.x86_64.tar.xz
|
wget -q https://github.com/koalaman/shellcheck/releases/download/$SHELLCHECK_VERSION/shellcheck-$SHELLCHECK_VERSION.linux.x86_64.tar.xz
|
||||||
|
echo "$SHELLCHECK_SHA256 shellcheck-$SHELLCHECK_VERSION.linux.x86_64.tar.xz" | sha256sum -c
|
||||||
tar -xJf shellcheck-$SHELLCHECK_VERSION.linux.x86_64.tar.xz
|
tar -xJf shellcheck-$SHELLCHECK_VERSION.linux.x86_64.tar.xz
|
||||||
sudo cp shellcheck-$SHELLCHECK_VERSION/shellcheck /usr/local/bin/
|
sudo cp shellcheck-$SHELLCHECK_VERSION/shellcheck /usr/local/bin/
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
Loading…
Reference in New Issue
Block a user