ci: add GitHub Actions workflow for Conventional Commits#121
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 38 minutes and 10 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughA new GitHub Actions workflow is introduced that automatically validates pull request commit messages against conventional commit standards using the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/workflows/conventional-commits.yaml (1)
12-14: Consider pinning actions by commit SHA for stronger supply-chain integrity.The workflow currently uses version tags (
v3andv1.3.0), which comply with the guideline allowing "commit SHA or tagged versions." However, tags are mutable and can be tampered with. Full-length commit SHA pinning provides cryptographic immutability and is the recommended approach, especially for third-party actions likewebiny/action-conventional-commits. GitHub's official security guidance and 2025 policies favor SHA pinning to mitigate supply chain risks.Example hardening pattern
- - uses: actions/checkout@v3 + - uses: actions/checkout@e2f00d665bcc5294bcadcd8cc6fa1ccd7bde0480 # v3.6.0 - - uses: webiny/action-conventional-commits@v1.3.0 + - uses: webiny/action-conventional-commits@<full_commit_sha_for_v1.3.0>🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/conventional-commits.yaml around lines 12 - 14, Replace mutable tag refs with full commit SHAs for the GitHub Actions used: change uses: actions/checkout@v3 to the specific checkout commit SHA and change uses: webiny/action-conventional-commits@v1.3.0 to the action's full commit SHA; update the workflow so the two uses entries reference those full-length SHA values (instead of v3 and v1.3.0) to ensure immutability and stronger supply-chain integrity.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/conventional-commits.yaml:
- Line 12: Update the checkout action reference from actions/checkout@v3 to
actions/checkout@v4 to avoid the deprecated Node 16 runtime; locate the line
containing "uses: actions/checkout@v3" and replace it with "uses:
actions/checkout@v4" so this workflow matches the other repository workflows
already upgraded to v4.
---
Nitpick comments:
In @.github/workflows/conventional-commits.yaml:
- Around line 12-14: Replace mutable tag refs with full commit SHAs for the
GitHub Actions used: change uses: actions/checkout@v3 to the specific checkout
commit SHA and change uses: webiny/action-conventional-commits@v1.3.0 to the
action's full commit SHA; update the workflow so the two uses entries reference
those full-length SHA values (instead of v3 and v1.3.0) to ensure immutability
and stronger supply-chain integrity.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 4c3110f4-6774-417c-bafc-530a2e83e5e9
📒 Files selected for processing (1)
.github/workflows/conventional-commits.yaml
LOL, are you a bot?! @matheusandre1 |
Closes: #107
references for review : https://github.com/webiny/action-conventional-commits