Skip to content

ci: shellcheck + bash -n for upstream-drift script#110

Merged
paultyng merged 2 commits into
mainfrom
chore/shellcheck-ci
May 28, 2026
Merged

ci: shellcheck + bash -n for upstream-drift script#110
paultyng merged 2 commits into
mainfrom
chore/shellcheck-ci

Conversation

@paultyng
Copy link
Copy Markdown
Owner

Summary

  • Add lint:shell Taskfile target running bash -n + shellcheck on scripts/upstream-drift.sh.
  • Add a lint-shell job to the CI workflow so the check runs on every PR.

The drift script drives the Monday cron that opens upstream sync PRs. Catching shell slips here keeps that pipeline from no-op'ing silently a week after a regression lands.

Test plan

  • task lint:shell passes locally
  • lint-shell CI job is green on this PR

paultyng and others added 2 commits May 27, 2026 08:30
Why: the drift script is load-bearing for the weekly upstream sync;
catch syntax slips and shell antipatterns before they run on the cron.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Why: review-all flagged ci.yml lacked an explicit permissions: block
(token inherited repo default) and that `task ci` skipped lint:shell.
Both are one-liners.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@paultyng paultyng marked this pull request as ready for review May 28, 2026 16:02
@paultyng paultyng merged commit 191d605 into main May 28, 2026
4 checks passed
@paultyng paultyng deleted the chore/shellcheck-ci branch May 28, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant