GitHub action to execute a lint check of all shell scripts using ShellCheck.
It works under Ubuntu, macOS and Windows runners.
.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
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 |
parameter | description |
---|---|
NumFilesWthIssues | Number of files with issues |
ListFilesWithIssues | A list of files with issues |
This action is an composite
action.