bewuethr / shellcheck-action

A GitHub Action to run the shell linter ShellCheck

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A GitHub Action to run the shell linter ShellCheck

License:MIT License


Languages

Language:Shell 100.0%