features/.github/workflows/linter-manual.yaml
Stephan 79588ef3da
checkout action update (#404)
- updated the action checkout from v2 to 3 as required by action warning
2023-01-17 09:18:13 -08:00

26 lines
703 B
YAML

name: "Manual - Shell Script Linter"
on:
workflow_dispatch:
inputs:
path:
description: "Path to the shell scripts to lint"
required: true
default: "src/**/*.sh"
severity:
description: "Minimum Severity (style, info, warning, error)"
required: true
default: "style"
jobs:
shellchecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Shell Linter
uses: azohra/shell-linter@v0.6.0
with:
path: ${{ github.event.inputs.path }}
severity: ${{ github.event.inputs.severity }}
env:
SHELLCHECK_OPTS: -e SC2072 # Acceptable use of decimal comparison