You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(scripts): no CI gate lints the 73 shell scripts in scripts/ #200
scripts/ contains 73 bash files, and no CI job lints them. Verified by grepping the workflow definitions for shellcheck, shfmt, or *.sh — there are no matches.
The practical effect: shellcheck findings on shell scripts can only ever arrive from third-party review bots (CodeRabbit/Ruff-style passes), never from the repository's own gates. On PR #172, shellcheck findings were surfaced by a bot while every native CI gate ignored the file.
Baseline measured 2026-10-22
Metric
Count
.sh files in scripts/
73
error-level findings (shellcheck -S error)
0
warning-level findings (shellcheck -S warning)
50
So an error-level gate is green on day one.
Design constraints
Hosted runners are capped at $0 (ci.yml notes the macOS leg was removed for that reason), so this cannot be a new GitHub-hosted job.
The single self-hosted runner (desk-kcode-1) already serialises every job and all open PRs sit UNSTABLE behind it, so a new job would worsen throughput.
A full 73-file scan costs roughly 5s per file — minutes on that runner.
Proposed fix
Add a step (not a job) to the existing quality job:
lint only the shell scripts changed in the current change set, so cost is proportional to the diff
gate at -S error only, reporting warning counts informationally, so the 50 pre-existing warnings do not block unrelated PRs
skip with a ::warning:: annotation if shellcheck is unavailable on the runner rather than blocking every PR on runner provisioning
Acceptance
Gate catches real defects: a probe script missing then exits 1 with SC1049/SC1073/SC1050/SC1072.
Gate passes clean scripts and the already-merged scripts/test-portal-bridge.sh.
Workflow YAML parses; the step appears in the quality job.
Activity
ci(scripts): install shellcheck portably and create the dir before co…