Repository navigation
ci: pin actionlint version and add pre-commit hook - #52
Conversation
Run the same actionlint version in CI and pre-commit. Disable ShellCheck on Darwin to avoid actionlint's pipe deadlock; CI runs it on Linux.
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Pin and configure actionlint .github/workflows/ci.yaml, .pre-commit-config.yaml, scripts/pre-commit/actionlint.sh |
The CI workflow and pre-commit hook pin actionlint to version 1.7.12. The hook uses a wrapper that disables ShellCheck on Darwin and forwards arguments on both operating-system paths. |
Priority:
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Other
Merge Risk: 
Minimal · up to 4dba9
-
No actionable merge-blocking risk remains; the change is ready to merge with normal checks.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (2 skipped: 2 unsupported.)
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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 @coderabbitai help to get the list of available commands.
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the actionlint version pinning and macOS-specific pre-commit workaround.
No open issues 🎉
What changed in this PR
This PR aligns local and CI workflow validation on actionlint 1.7.12 and adds a macOS-specific workaround without changing the composite action itself.
Changes:
- Pin actionlint to version 1.7.12 in CI and pre-commit.
- Add a pre-commit wrapper that disables ShellCheck on Darwin to avoid the reported pipe deadlock, while retaining it on Linux.
| File | Description |
|---|---|
scripts/pre-commit/actionlint.sh |
Wraps actionlint with Darwin-specific ShellCheck handling and a notice. |
.pre-commit-config.yaml |
Adds the pinned actionlint hook using the wrapper. |
.github/workflows/ci.yaml |
Pins the CI actionlint version to 1.7.12. |
Review effort: Balanced
Summary
Dependencies
This PR contains one commit directly above
upstream/mainand changes only the CI workflow, pre-commit configuration, and actionlint wrapper. It is independent of the guardrail PR and can merge in either order.Validation
git diff --checkpassed.1.7.12.v1.7.12, using the new wrapper script.