-
-
Notifications
You must be signed in to change notification settings - Fork 93
36 lines (30 loc) · 1.22 KB
/
shellcheck.yml
File metadata and controls
36 lines (30 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This workflow will scan all *.sh files and report problems in the PR checks.
# Runs on every push to main and PR targeting main.
# Can be run manually via Actions → “ShellCheck (Bash Linting)” → Run workflow.
name: "ShellCheck (Bash Linting)"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
shellcheck:
name: ShellCheck (Bash)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
# Install and run ShellCheck using a maintained GitHub Action.
- name: Run ShellCheck
uses: ludeeus/[email protected]
with:
# Optional: you can configure which paths to scan. By default,
# the action will look for *.sh files in the repository.
# minimum severity to report: error, warning, info, style
severity: warning
# optional extras you *could* add:
# scandir: . # where to search for scripts (default ".")
# ignore_paths: "vendor" # space-separated paths to ignore
# ignore_names: "*.tmpl" # ignore by filename pattern
# version: stable # ShellCheck version (default: stable)