Files
NeoTachyon/.github/workflows/shellcheck.yml
T
Dushnilin 603c0df91b feat(security,ci,ui): harden CI/CD, LuCI ACL, low-space updates and mobile layout
- ci: make frontend CI read-only with strict diff check and deterministic calls.json
- ci: pin external GitHub Actions in workflows to immutable commit SHAs
- ci: add openwrt-e2e blocking gate job running docker_e2e_test.sh
- fix(diagnostic): fix contstants.ts typo and update all 13 import sites
- fix(acl): remove unused /bin/busybox exec from rpcd ACL and add regression test
- feat(updates): add low-space update fallback when creating sing-box.old is impossible
- fix(routes): preserve dedicated Discord gateway subnets (162.159.128.0/21)
- feat(ui): implement responsive auto-fit grid and mobile modal viewport bounds
- test: add viewport regression test suite in vitest
2026-09-14 23:00:18 +03:00

63 lines
1.7 KiB
YAML

name: Differential ShellCheck
on:
workflow_dispatch:
push:
branches:
- main
- 'rc/**'
paths:
- 'build.sh'
- 'install.sh'
- 'tachyon/files/etc/init.d/**'
- 'tachyon/files/usr/lib/cgi-bin/**'
- 'tachyon/files/etc/hotplug.d/iface/**'
- 'luci-app-tachyon/root/etc/uci-defaults/**'
- 'tests/**/*.sh'
- '.github/workflows/shellcheck.yml'
pull_request:
branches:
- main
- 'rc/**'
paths:
- 'build.sh'
- 'install.sh'
- 'tachyon/files/etc/init.d/**'
- 'tachyon/files/usr/lib/cgi-bin/**'
- 'tachyon/files/etc/hotplug.d/iface/**'
- 'luci-app-tachyon/root/etc/uci-defaults/**'
- 'tests/**/*.sh'
- '.github/workflows/shellcheck.yml'
permissions:
contents: read
jobs:
shellcheck:
name: Differential ShellCheck
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install ShellCheck
run: |
sudo rm -f /etc/apt/sources.list.d/google-chrome.list
sudo apt-get update
sudo apt-get install -y shellcheck
- name: ShellCheck
shell: bash
run: |
mapfile -d '' scripts < <(
find . -type f \
\( -name '*.sh' -o -path './build.sh' -o -path './install.sh' \
-o -path './tachyon/files/etc/init.d/*' \
-o -path './tachyon/files/usr/lib/cgi-bin/*' \
-o -path './tachyon/files/etc/hotplug.d/iface/*' \
-o -path './luci-app-tachyon/root/etc/uci-defaults/*' \) \
-print0
)
shellcheck --severity=error "${scripts[@]}"