Repository navigation
chore: update triggering actor of workflow - #4694
Conversation
Summary by CodeRabbit
WalkthroughRestricted who can trigger two GitHub Actions workflows by narrowing github.actor and github.triggering_actor allowlists. Conditions still require ref to be main. No other workflow steps or logic changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor A as Initiating User
participant GHA as GitHub Actions
participant W as Workflow (hotfix/release)
A->>GHA: Push / dispatch on main
GHA->>GHA: Evaluate if: ref == main AND actor ∈ allowlist AND triggering_actor ∈ allowlist
alt Authorized
GHA->>W: Start workflow
W-->>A: Execute steps
else Not authorized
GHA-->>A: Skip workflow (condition false)
end
note over GHA,W: Change: allowlists narrowed for both actor checks
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches🧪 Generate unit tests
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. 🧪 Early access (Sonnet 4.5): enabledWe are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note:
Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (3)
.github/workflows/draft-new-release.yml (2)
15-15: Clarify the asymmetry in actor whitelists.The
github.actorlist includes 7 users whilegithub.triggering_actorincludes 9 users (addingsaikumarrsandchandumlg). This asymmetry means thatsaikumarrsandchandumlgcan trigger the workflow but cannot be the direct actor executing it.Please confirm this difference is intentional and consider adding a comment explaining the distinction between the two lists for future maintainability.
15-15: Consider extracting actor lists to reduce duplication.The actor whitelist conditions are duplicated across multiple workflows (this file and
create-hotfix-branch.yml). This creates a maintenance burden—updates must be synchronized manually across files.Consider one of these approaches:
- Use a reusable workflow with centralized actor validation
- Define actor lists in repository variables/secrets and reference them
- Document the actor lists in a central location (e.g., README) to ensure consistency
.github/workflows/create-hotfix-branch.yml (1)
19-19: Line readability could be improved.The single-line condition with multiple OR clauses spanning 9 actors is difficult to read and maintain. Consider breaking it into multiple lines for better readability.
Apply this formatting improvement:
- if: github.ref == 'refs/heads/main' && (github.actor == 'vinayteki95' || github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'koladilip' || github.actor == 'saikumarrs' || github.actor == 'chandumlg' || github.actor == 'utsabc' || github.actor == 'maheshkutty' || github.actor == 'abhimanyubabbar') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'koladilip' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'utsabc' || github.triggering_actor == 'vinayteki95' || github.triggering_actor == 'maheshkutty' || github.triggering_actor == 'abhimanyubabbar') + if: | + github.ref == 'refs/heads/main' && + (github.actor == 'vinayteki95' || github.actor == 'ItsSudip' || github.actor == 'krishna2020' || + github.actor == 'koladilip' || github.actor == 'saikumarrs' || github.actor == 'chandumlg' || + github.actor == 'utsabc' || github.actor == 'maheshkutty' || github.actor == 'abhimanyubabbar') && + (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || + github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'koladilip' || + github.triggering_actor == 'chandumlg' || github.triggering_actor == 'utsabc' || + github.triggering_actor == 'vinayteki95' || github.triggering_actor == 'maheshkutty' || + github.triggering_actor == 'abhimanyubabbar')
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
.github/ISSUE_TEMPLATE/bug_report.mdis excluded by!**/*.md
📒 Files selected for processing (2)
.github/workflows/create-hotfix-branch.yml(1 hunks).github/workflows/draft-new-release.yml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
- GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
- GitHub Check: Code Coverage
- GitHub Check: test_and_publish
- GitHub Check: UT Tests
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: Analyze (go)
🔇 Additional comments (1)
.github/workflows/create-hotfix-branch.yml (1)
19-19: Aligngithub.actorlists or confirm intended difference.
The draft-new-release workflow excludeschandumlgandsaikumarrsfromgithub.actor, while create-hotfix-branch includes all nine. Verify whether this restriction is intentional or update draft-new-release.yml to match.
|
Allure Test reports for this run are available at:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4694 +/- ##
========================================
Coverage 91.79% 91.79%
========================================
Files 645 645
Lines 34086 34086
Branches 8050 8041 -9
========================================
Hits 31290 31290
- Misses 2544 2566 +22
+ Partials 252 230 -22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



What are the changes introduced in this PR?
Write a brief explainer on your code changes.
What is the related Linear task?
Resolves INT-XXX
Please explain the objectives of your changes below
Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
N/A
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
N/A
@coderabbitai review
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
Is the PR limited to 10 file changes?
Is the PR limited to one linear task?
Are relevant unit and component test-cases added in new readability format?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.