Skip to content

chore: update github action workflow actors - #4621

Merged
Jayachand merged 2 commits into
developfrom
chore.update-workflow-actors
Sep 10, 2025
Merged

Jayachand merged 2 commits into
developfrom
chore.update-workflow-actors

Conversation

@Jayachand

Copy link
Copy Markdown
Collaborator

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.

@Jayachand
Jayachand requested a review from a team September 10, 2025 09:57
@coderabbitai

coderabbitai Bot commented Sep 10, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Expanded authorized maintainers for creating hotfix branches and initiating draft releases in internal automation.
    • Updated release drafting to use the full repository history (no shallow fetch) during checkout.
    • No changes to application features or UI; end-user experience remains the same.
    • These updates aim to streamline internal release operations without impacting product functionality.

Walkthrough

Two GitHub Actions workflows were updated to expand actor allowlists by adding user abhimanyubabbar. The release workflow additionally changed the checkout step to fetch full history (fetch-depth: 0). No other control-flow or functional changes were made.

Changes

Cohort / File(s) Summary of Changes
Hotfix workflow gating update
.github/workflows/create-hotfix-branch.yml
Added abhimanyubabbar to github.actor and github.triggering_actor allowlists; no other logic changes.
Release workflow updates
.github/workflows/draft-new-release.yml
Added abhimanyubabbar to github.actor and github.triggering_actor allowlists; changed actions/checkout to use fetch-depth: 0 to fetch full repository history.

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
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • sivashanmukh
  • koladilip
  • vinayteki95

Pre-merge checks (2 passed, 1 warning)

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The description is still populated with the unmodified template placeholders and does not provide any actual details on what was changed, the related Linear task, or the objectives of the work, making it incomplete. Please replace all placeholder text with a concise summary of the changes (for example, adding the user “abhimanyubabbar” to workflow allowlists and updating fetch-depth), include the correct Linear ticket number, and describe the objectives and any dependencies or impacts of these updates.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The title “chore: update github action workflow actors” accurately and concisely describes the primary change of the PR, which is updating the allowlists of actors in the GitHub Actions workflows, and it is specific enough for team members to understand the intent without unnecessary detail.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dd2f63a and 4b30ebd.

📒 Files selected for processing (1)
  • .github/workflows/create-hotfix-branch.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/create-hotfix-branch.yml
⏰ 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)
  • GitHub Check: Code Coverage
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: test_and_publish
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore.update-workflow-actors

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Jayachand
Jayachand force-pushed the chore.update-workflow-actors branch from d2e8ef8 to dd2f63a Compare September 10, 2025 09:58
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 both github.actor and github.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, setting sha makes 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

📥 Commits

Reviewing files that changed from the base of the PR and between b4c9d50 and dd2f63a.

📒 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 abhimanyubabbar to 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.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Sep 10, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.78%. Comparing base (c53b909) to head (4b30ebd).
⚠️ Report is 2 commits behind head on develop.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

@Jayachand
Jayachand merged commit c55e0e9 into develop Sep 10, 2025
@Jayachand
Jayachand deleted the chore.update-workflow-actors branch September 10, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants