Repository navigation
Lint Composite Actions with Shellcheck and the Schema in the Repo Gate - #2347
Conversation
Addresses #2335 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Merge origin/develop and rework the composite-actions check: shellcheck runs from the fleet's Docker image, each half reports its own missing tool, YAML and tool failures become findings, placeholders keep line numbers, and the docs describe the check as it runs. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Merge origin/develop. Expressions become a variable with continued newlines, bodies run at warning severity as bytes, the Docker daemon is probed once, and an empty or non-mapping action file is a finding. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Return a collapsed expression's newlines after its physical line so a comment is not continued into code, and state the warning-severity limits and the uvx float policy accurately. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unresolved critical parsing, network-isolation, and governance issues remain.
Review effort: Lite
Findings: 3
Open (4)
What changed in this PR
Adds centralized ShellCheck and schema validation for composite actions in the repository gate.
Changes:
- Adds Docker-based ShellCheck and schema validation with fallbacks.
- Replaces the duplicated workflow schema step.
- Adds tests and updates documentation, contracts, and generated skills.
| File | Reviewed change | Findings |
|---|---|---|
tests/test_repo_gate.py |
Adds composite-action test coverage. | Nit (1 vote): explain or replace the mock type suppression at line 950. |
scripts/README.md |
Documents the new gate behavior. | Nit (2 votes): clarify local Docker, uvx, and pipx requirements. |
OPERATIONS.md |
Removes the duplicated schema invocation. | No findings. |
GOVERNANCE.md |
Updates the CI linting contract. | Critical (1 vote): remove the tracker reference from the modified instruction line. |
docs/reusable-workflows.md |
Documents downstream adoption. | No findings. |
.github/workflows/validate-task.yml |
Routes validation through the repository gate. | No findings. |
.github/skills/workflow-ci-contract/SKILL.md |
Updates workflow guidance. | No findings. |
.github/actions/repo-gate/repo_gate.py |
Implements composite-action shell and schema checks. | Critical (2 votes): use expression-aware parsing before ShellCheck. Critical (1 vote): disable networking for the lint container. Nit (1 vote): explain the optional-import suppression. |
.github/actions/repo-gate/action.yml |
Updates the gate description. | No findings. |
.claude-plugin/fleet-skills/skills/workflow-ci-contract/SKILL.md |
Updates generated guidance. | No findings. |
.claude-plugin/fleet-skills/.source-digests/workflow-ci-contract |
Refreshes the source digest. | No findings. |
.agents/skills/workflow-ci-contract/SKILL.md |
Updates canonical workflow guidance. | No findings. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…n Missing Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…llowing Shell Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2347 +/- ##
==========================================
Coverage ? 57.70%
==========================================
Files ? 16
Lines ? 7919
Branches ? 0
==========================================
Hits ? 4570
Misses ? 3349
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…er Concurrency, and Review Digest Fixes (#2349) ## Summary Promotes `develop` to `main` with twelve pull requests, each already reviewed and merged into `develop`: - [#2329](#2329) drops the KiCadLibrary merge-bot failure note now that its secrets exist. - [#2330](#2330) retires the stale blog gitattributes entry and corrects the blog's hooks row. - [#2331](#2331) scopes the publisher concurrency group to the ref and settles the D4.7 window. - [#2332](#2332) refuses history reads in a shallow hub clone. - [#2333](#2333) names the fetched commit in `hub-fetch-run.py` and tests its unborn-HEAD and probe paths. - [#2337](#2337) counts only the newest check suite per check in the review digest. - [#2340](#2340) deletes merge-bot heads from the closed event and splits the stub concurrency sentence. - [#2343](#2343) drops the branch ref from the version example and documents the file-target release variant. - [#2344](#2344) measures a wrapped Markdown sentence whole in the sentence-length check. - [#2345](#2345) makes the dispatcher own the strict-review pass for seats that cannot dispatch. - [#2346](#2346) adds a dependency-version `test-matrix` axis to the validate task. - [#2347](#2347) lints composite actions with shellcheck and the schema in the repo gate. Closes #2302 Closes #2325 Closes #2320 Closes #2300 Closes #2312 Closes #2323 Closes #2296 Closes #2294 Closes #2292 Closes #2311 Closes #2327 Closes #1421 Closes #2321 Closes #2334 Closes #2335 Closes #2318 Closes #2293 Closes #2297 Closes #2301 🤖 Generated with [Claude Code](https://claude.com/claude-code)



Summary
The repo gate gains a
composite-actionscheck, so composite actions under.github/actions/are linted wherever the hub gate runs. actionlint reads workflows only, so shell moved into an action previously had no shellcheck coverage.run:body of a bash, sh, or unset-shell step goes to shellcheck from thekoalaman/shellcheck:stableDocker image, at warning severity without SC2154. That is weaker than linting a.shfile. Each${{ }}expression is replaced by${GHA_EXPR}first, and findings name the action file, step, and run line.uvx check-jsonschema@latest --builtin-schema vendor.github-actionsover every action file, with apipx runfallback. This replaces the inline schema step invalidate-task.yml.Known limit: a
\at the end of a line inside a single-quoted string is treated as a continuation, which can shift a later finding by one line. It produces no false finding.Addresses #2335
🤖 Generated with Claude Code