Skip to content

Run ShellCheck

Actions
Run ShellCheck on all shell files
v2.2.0
Latest
Star (10)

shellcheck-action

Lint code base Update release tags Add issues to project

This 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.

Example usage

uses: bewuethr/shellcheck-action@v2

Versions

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.

About

Run ShellCheck on all shell files
v2.2.0
Latest

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.