Skip to content
check-circle

GitHub Action

action-shellcheck

latest Latest version

action-shellcheck

check-circle

action-shellcheck

Use ShellCheck without having to install it

Installation

Copy and paste the following snippet into your .yml file.

              

- name: action-shellcheck

uses: sudo-bot/action-shellcheck@latest

Learn more about this action in sudo-bot/action-shellcheck

Choose a version

A GitHub action to run ShellCheck

Go to ShellCheck at GitHub

You can find the image on Docker Hub

Docker Pulls

You can find the image on Docker Hub

I use the base image koalaman/shellcheck for this action

This action has make and bash.

Example usage

  - uses: actions/checkout@v4
  - name: run shellcheck
    uses: sudo-bot/action-shellcheck@latest
    with:
        # https://github.com/koalaman/shellcheck#how-to-use
        cli-args: "myscript"

Advanced usage

  - uses: actions/checkout@v4
  - name: run shellcheck
    uses: sudo-bot/action-shellcheck@latest
    with:
        # https://github.com/koalaman/shellcheck#how-to-use
        cli-args: "--format=checkstyle --severity=info script.sh"