Skip to content

ci: tidy pre-existing shellcheck findings + drop -S warning escape hatch - #18

Merged
blairham merged 1 commit into
mainfrom
ci/shellcheck-tidy
Jun 8, 2026
Merged

ci: tidy pre-existing shellcheck findings + drop -S warning escape hatch#18
blairham merged 1 commit into
mainfrom
ci/shellcheck-tidy

Conversation

@blairham

@blairham blairham commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix the four shellcheck info/style findings (SC2295, SC2001, SC2129) in chart-release.yml, docker-release.yml, and tag-config.yml that PG#944's initial roll-out had to suppress.
  • Drop SHELLCHECK_OPTS: -S warning from actionlint.yml — shellcheck is back at its default severity (info+), so future style regressions in run: blocks fail PRs.

Fixes

  • ${var#${prefix}}${var#"${prefix}"} (SC2295) in chart-release, docker-release, and tag-config.
  • Three sequential >> "$GITHUB_OUTPUT" redirects collapsed under one { ... } >> "$GITHUB_OUTPUT" block in tag-config (SC2129).
  • echo "\$services" | sed 's/^/ - /' replaced with a while read loop in tag-config (SC2001).

Test plan

  • actionlint job in this PR's CI is green with no SHELLCHECK_OPTS override.

🤖 Generated with Claude Code

Fixes the four info/style findings that PG#944's initial actionlint
roll-out had to suppress via `SHELLCHECK_OPTS=-S warning`:

- chart-release.yml / docker-release.yml: quote the prefix inside
  `${var#${prefix}}` (SC2295).
- tag-config.yml: quote `+${svc}` inside `${var%+${svc}}` (SC2295);
  group three sequential `>> "$GITHUB_OUTPUT"` redirects under one
  `{ ... } >> "$GITHUB_OUTPUT"` (SC2129); replace the `sed`-based
  list-prefix with a `while read` loop (SC2001).

With these cleared, the severity override on actionlint.yml's env can
go away too — shellcheck is back to running at its default severity
(`info`+), so future style regressions in `run:` blocks fail PRs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@blairham
blairham merged commit 1622d68 into main Jun 8, 2026
1 check passed
@blairham
blairham deleted the ci/shellcheck-tidy branch July 5, 2026 14:37
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