Run ShellCheck
ActionsThis action runs ShellCheck on every file containing shell code in the repository.
To determine if a file is a shell script, the output of file
is matched
against the extended regular expression
((POSIX|Korn|Bourne-Again) shell|/usr/bin/env k?sh) script
Additionally, files with the extensions .sh
, .bash
and .ksh
are checked.
uses: bewuethr/shellcheck-action@v2
To get the latest version of a major release, the major release without minor and patch release can be used.
For example: if the latest release is v2.1.2
,
uses: bewuethr/shellcheck-action@v2
and
uses: bewuethr/shellcheck-action@v2.1.2
will fetch v2.1.2
. The advantage of using just @v2
is that minor releases
and patches are included without requiring a change; the advantage of using
@v2.1.2
is knowing that the action does 100% the same thing every time.
This is done via the release-tag-tracker action.
Run ShellCheck is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.