Repository navigation
chore: update github action workflow actors - #4621
Conversation
Summary by CodeRabbit
WalkthroughTwo GitHub Actions workflows were updated to expand actor allowlists by adding user Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User as GitHub Actor
participant GH as GitHub
participant WF_Hotfix as create-hotfix-branch workflow
participant WF_Release as draft-new-release workflow
rect rgb(240,250,240)
note over GH,WF_Hotfix: Push to main or matching trigger
GH->>WF_Hotfix: Evaluate ref and actor allowlists (includes abhimanyubabbar)
alt Allowed
WF_Hotfix->>WF_Hotfix: Run job to create hotfix branch
else Not allowed
WF_Hotfix-->>GH: Job skipped
end
end
rect rgb(240,245,255)
note over GH,WF_Release: Manual/dispatch or trigger
GH->>WF_Release: Evaluate actor & triggering_actor allowlists (includes abhimanyubabbar)
alt Allowed
WF_Release->>Repo: actions/checkout (fetch-depth: 0)
WF_Release->>WF_Release: Draft release steps
else Not allowed
WF_Release-->>GH: Job skipped
end
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Pre-merge checks (2 passed, 1 warning)❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ 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). (5)
✨ 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. Comment |
d2e8ef8 to
dd2f63a
Compare
|
Allure Test reports for this run are available at:
|
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (4)
.github/workflows/draft-new-release.yml (2)
15-15: Deduplicate actor allowlists to prevent drift and future typos.Define a single allowlist and use
contains(fromJSON(...), ...)for bothgithub.actorandgithub.triggering_actor.Apply within the changed line:
- if: (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/hotfix/')) && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'sandeepdsvs' || github.actor == 'koladilip' || github.actor == 'yashasvibajpai' || github.actor == 'utsabc' || github.actor == 'vinayteki95' || github.actor == 'maheshkutty' || github.actor == 'manish339k' || github.actor == 'abhimanyubabbar') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'koladilip' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'yashasvibajpai' || github.triggering_actor == 'utsabc' || github.triggering_actor == 'maheshkutty' || github.triggering_actor == 'manish339k' || github.triggering_actor == 'vinayteki95' || github.triggering_actor == 'abhimanyubabbar') + if: (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/hotfix/')) && contains(fromJSON(env.RELEASE_ACTORS), github.actor) && contains(fromJSON(env.RELEASE_ACTORS), github.triggering_actor)Add this job-level env (outside the changed lines):
env: RELEASE_ACTORS: '["ItsSudip","krishna2020","sandeepdsvs","koladilip","yashasvibajpai","utsabc","vinayteki95","maheshkutty","manish339k","abhimanyubabbar","saikumarrs","chandumlg","mihir-4116"]'
9-13: Consider a concurrency guard to avoid overlapping release drafts.Prevents two manual runs from clobbering each other on the same ref.
Example:
concurrency: group: draft-new-release-${{ github.ref }} cancel-in-progress: false.github/workflows/create-hotfix-branch.yml (2)
19-19: Centralize allowlist to avoid future typos.Same deduping as the release workflow: use a single JSON array +
contains(fromJSON(...), ...).Within this line:
- if: github.ref == 'refs/heads/main' && (github.actor == 'vinayteki95' || ... + if: github.ref == 'refs/heads/main' && contains(fromJSON(env.HOTFIX_ACTORS), github.actor) && contains(fromJSON(env.HOTFIX_ACTORS), github.triggering_actor)And add:
env: HOTFIX_ACTORS: '["vinayteki95","ItsSudip","krishna2020","koladilip","saikumarrs","sandeepdsvs","chandumlg","mihir-4116","utsabc","maheshkutty","manish339k","abhimanyubabbar"]'
21-27: Explicitly set branch base commit to main for determinism.Although the job is gated on
refs/heads/main, settingshamakes the base explicit.- name: Create Branch uses: peterjgrainger/action-create-branch@10c7d268152480ae859347db45dc69086cef1d9c env: GITHUB_TOKEN: ${{ secrets.PAT }} with: branch: 'hotfix/${{ inputs.hotfix_name }}' + sha: ${{ github.sha }}
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/create-hotfix-branch.yml(1 hunks).github/workflows/draft-new-release.yml(1 hunks)
🧰 Additional context used
🪛 actionlint (1.7.7)
.github/workflows/create-hotfix-branch.yml
19-19: unexpected token "||" while parsing variable access, function call, null, bool, int, float or string. expecting "IDENT", "(", "INTEGER", "FLOAT", "STRING"
(expression)
⏰ 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). (4)
- GitHub Check: Code Coverage
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: test_and_publish
- GitHub Check: UT Tests
🔇 Additional comments (2)
.github/workflows/draft-new-release.yml (2)
15-15: Actor added correctly; gate condition remains consistent.Adding
abhimanyubabbarto both actor checks looks good.
18-21: Full fetch depth is appropriate here.Fetching full history (depth 0) aligns with the tag/merge logic below.
|
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 #4621 +/- ##
========================================
Coverage 91.78% 91.78%
========================================
Files 642 642
Lines 33941 33941
Branches 8045 8044 -1
========================================
Hits 31152 31152
+ Misses 2559 2537 -22
- Partials 230 252 +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.