docs: create workflow best practices guide#1822
Conversation
There was a problem hiding this comment.
Pull request overview
This PR creates a comprehensive best practices guide for writing and maintaining GitHub Actions workflows, addressing Issue #1743. The guide serves as the third installment in the workflow documentation series, providing practical guidance for contributors and maintainers on creating safe, maintainable, and debuggable automation.
Changes:
- Added
docs/workflows/03-workflow-best-practices.mdcovering 10 key principles for workflow development (orchestration vs logic separation, environment variables, secrets handling, permissions, logging, error handling, user notifications, safety rules, concurrency, and testing) - Updated
CHANGELOG.mdto document the new workflow best practices guide under the Docs section
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
docs/workflows/03-workflow-best-practices.md |
Comprehensive best practices guide covering workflow safety, maintainability, and testing with code examples, cross-references to existing docs, and a quick-reference checklist |
CHANGELOG.md |
Added changelog entry documenting the new workflow best practices guide under the Docs section |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
No actionable comments were generated in the recent review. 🎉 WalkthroughThis PR adds a new workflow best practices documentation file and an Unreleased CHANGELOG entry; there are no code or behavioral changes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes 🚥 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)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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 |
|
Thanks for the detailed reviews! All feedback has been addressed in the latest push:
@aceppaluni — Regarding the Also rebased onto |
|
That's really nice work! Could you please comment on the issue to be assigned? |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #1822 +/- ##
=======================================
Coverage 93.29% 93.29%
=======================================
Files 141 141
Lines 9119 9119
=======================================
Hits 8508 8508
Misses 611 611 🚀 New features to boost your workflow:
|
|
Hi @ambicuity could you please rebase, we have some problems merging this |
Create docs/workflows/03-workflow-best-practices.md covering 10 key principles for writing and maintaining GitHub Actions workflows: 1. Separate the workflow from the logic 2. Avoid hardcoding — use environment variables 3. Secrets handling 4. Permissions — default to read 5. Log for debugging and maintainability 6. Error handling (expected, operational, system) 7. Notify users on failures 8. Safety rules (SHA pinning, input validation) 9. Concurrency controls 10. Testing and dry runs Includes quick-reference checklist and cross-references to existing documentation. Signed-off-by: riteshr19 <riteshrana36@gmail.com>
- Update actions/github-script example to v8.0.0 SHA (CodeRabbit) - Fix invalid YAML in secrets example — step-level env (CodeRabbit) - Add pull_request_target security warning to Section 8 (CodeRabbit) - Fix 4x British→American spelling: behaviour→behavior (Copilot) - Fix Minimise→Minimize (Copilot) - Fix dry_run input naming to match codebase convention (Copilot) - Hyphenate decision-making (CodeRabbit) Signed-off-by: riteshr19 <riteshrana36@gmail.com>
|
@hiero-ledger/hiero-sdk-python-committers please merge when tests pass |
AntonioCeppellini
left a comment
There was a problem hiding this comment.
Nice work! @ambicuity
Fixes #1743
Description
Creates
docs/workflows/03-workflow-best-practices.md— a comprehensive best practices guide for writing and maintaining GitHub Actions workflows and their companion scripts.Structure
The guide covers 10 key principles:
Includes a quick-reference checklist table and cross-references to existing documentation:
Acceptance Criteria