Skip to content

ShellCheck (Bash Linting) #2

ShellCheck (Bash Linting)

ShellCheck (Bash Linting) #2

Workflow file for this run

# 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@v4
# Install and run ShellCheck using a maintained GitHub Action.
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@v2
with:
# Optional: you can configure which paths to scan. By default,
# the action will look for *.sh files in the repository.
severity: warning