cache-apt-pkgs-action/.github/workflows/shellcheck.yml
Mahyar McDonald 948e84fcd2 add shellcheck linting
- Updated variable expansions to use double quotes for better safety and to prevent word splitting.
- Replaced `ls` with `find` in cache operations to handle non-alphanumeric filenames more robustly.
- Enhanced array handling in scripts by using `${*:N}` syntax for concatenation.
- Improved readability and consistency in conditional checks by using `[[ ... ]]` instead of `[ ... ]`.
- Added comments for clarity on specific operations and shellcheck directives.
2025-10-31 12:27:30 -07:00

29 lines
451 B
YAML

name: ShellCheck
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- master
- dev
- staging
permissions:
contents: read
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
scandir: '.'
format: gcc
severity: style