ci(trunk): install actionlint before custom lint command - #542
Conversation
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
L17 Latency Budget ReportChecked against: budgets/rest-endpoints.yaml. |
| run: | | ||
| set -euo pipefail | ||
| mkdir -p "$HOME/.local/bin" | ||
| bash <(curl -fsSL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) latest "$HOME/.local/bin" |
|
Note
|
| Layer / File(s) | Summary |
|---|---|
Install and expose actionlint .github/workflows/trunk-check.yml |
The workflow downloads actionlint into $HOME/.local/bin, adds that directory to GITHUB_PATH, and verifies the installed version before Trunk Check. |
Estimated code review effort: 2 (Simple) | ~5 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Description check | The description explains the change and validation, but it omits most template sections, including related issues, test status, coverage notes, reviewer notes, and the 71-pillar self-check. | Add the missing template sections and record applicable checklist results, test information, coverage notes, reviewer guidance, and 71-pillar impact. |
✅ Passed checks (4 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | ✅ Passed | The title clearly and concisely describes installing actionlint for the Trunk CI command. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
- Create stacked PR
- Commit on current branch
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
fix/trunk-actionlint-setup-20260808
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.
L17 Latency Regression ReportThreshold: 10% p99 regression. |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2d612bb982
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| run: | | ||
| set -euo pipefail | ||
| mkdir -p "$HOME/.local/bin" | ||
| bash <(curl -fsSL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) latest "$HOME/.local/bin" |
There was a problem hiding this comment.
In this pull_request/push workflow, this line executes whatever is currently on the upstream rhysd/actionlint main branch and asks it to install latest, while the adjacent actions are pinned to SHAs. A transient or compromised upstream change can break CI or run arbitrary code in this job without any repository change, so fetch a fixed actionlint release and ideally verify its checksum, or pin the installer to a commit.
Useful? React with 👍 / 👎.
Code Review SummaryStatus: No New Issues Found | Recommendation: Merge Files Reviewed (1 file)
Reviewed by step-3.7-flash · Input: 90.3K · Output: 9.3K · Cached: 322.4K |




User description
Summary
.trunk/trunk.yamlcommandEvidence
Run 31237292485 failed because trunk reported
Unable to find binary in PATHforactionlint; the workflow had no setup-deps step and trunk custom commands do not provision binaries.Validation:
git diff --check; workflow content inspected.Airlock: no snapshot needed after commit (clean tree).
CodeAnt-AI Description
Ensure trunk checks can run actionlint in CI
What Changed
Impact
✅ Fewer CI lint failures✅ Reliable workflow validation✅ Clearer setup errors💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.
Summary by CodeRabbit