Skip to content

a5k-actions/shellchecker

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

ShellChecker

REUSE status License: LGPL-3.0-or-later GitHub release

Description

GitHub action to execute a lint check of all shell scripts using ShellCheck.

It works under Ubuntu, macOS and Windows runners.

Usage example

.github/workflows/code-lint.yml :

---
name: "Code lint"
permissions: {}
on: [push, pull_request, workflow_dispatch]

jobs:
  shellchecker:
    name: "ShellChecker"
    runs-on: ubuntu-latest
    timeout-minutes: 15

    steps:
      - name: "Checkout sources"
        uses: actions/checkout@v4
      - name: "ShellChecker"
        uses: a5k-actions/shellchecker@v0

Inputs

parameter description required default
shellcheck-version Version of ShellCheck to use. Values: [stable, latest, v0.8.0, ...] false stable
severity Minimum severity of issues to display. Values: [style, info, warning, error] false
enable-all-opt-checks Enable all optional checks. Values: [true, false] false false
ignore-files List of files to ignore, the separator is: | false gradlew

Outputs

parameter description
NumFilesWthIssues Number of files with issues
ListFilesWithIssues A list of files with issues

Runs

This action is an composite action.

About

ShellChecker - GitHub action to execute a lint check of all shell scripts using ShellCheck

Resources

License

GPL-3.0 and 2 other licenses found

Licenses found

GPL-3.0
LICENSE.rst
Unknown
COPYING.LESSER
LGPL-3.0
LICENSE-LESSER.rst

Stars

Watchers

Forks

Contributors 2

  •  
  •