Skip to content

chore: update triggering actor of workflow - #4694

Merged
maheshkutty merged 1 commit into
developfrom
chore.triggering_actor
Oct 1, 2025
Merged

maheshkutty merged 1 commit into
developfrom
chore.triggering_actor

Conversation

@maheshkutty

Copy link
Copy Markdown
Contributor

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.

@maheshkutty
maheshkutty requested a review from a team as a code owner September 30, 2025 13:05
@coderabbitai

coderabbitai Bot commented Sep 30, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Tightened permissions for creating hotfix branches, limiting workflow execution to a smaller, vetted group.
    • Reduced who can initiate the draft release workflow, aligning triggers to a more restricted set of authorized users.
    • Improves security and governance of release operations; no changes to product features or behavior.
    • No action required from end users.

Walkthrough

Restricted 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

Cohort / File(s) Change Summary
Workflow authorization tightening
.github/workflows/create-hotfix-branch.yml, .github/workflows/draft-new-release.yml
Reduced allowlists for github.actor and github.triggering_actor. Maintained conjunction with refs/heads/main. No step edits, no new jobs, no structural 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
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes
Suggestion: Confirm the final allowlists match the documented release/hotfix RACI, and consider centralizing allowed actors via reusable workflow inputs to reduce drift.

Possibly related PRs

Suggested reviewers

  • krishna2020
  • sivashanmukh

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The pull request description remains the unmodified template and contains placeholders instead of concrete details about the changes, objectives, tests, or documentation, leaving critical sections incomplete. Please update the description by removing placeholder text, adding a concise summary of the actor whitelist changes, linking the related Linear task with its actual ID, and detailing objectives, testing steps, and any dependent changes or documentation updates.
Title Check ❓ Inconclusive The title indicates an update to the triggering actor of the workflow, which broadly aligns with the changes reducing the set of allowed actors, but it is generic and does not specify which workflows or that the actor whitelists were narrowed, making it too vague for clear comprehension at a glance. Consider revising the title to more precisely reflect the main change, for example: “chore: narrow triggering actor whitelists in hotfix and release workflows” to clarify scope and intent.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore.triggering_actor

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
🧪 Early access (Sonnet 4.5): enabled

We 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:

  • Public repositories are always opted into early access features.
  • You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file.

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

@maheshkutty maheshkutty changed the title chore: update triggering actor chore: update triggering actor of workflow Sep 30, 2025

@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: 0

🧹 Nitpick comments (3)
.github/workflows/draft-new-release.yml (2)

15-15: Clarify the asymmetry in actor whitelists.

The github.actor list includes 7 users while github.triggering_actor includes 9 users (adding saikumarrs and chandumlg). This asymmetry means that saikumarrs and chandumlg can 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

📥 Commits

Reviewing files that changed from the base of the PR and between acf0807 and 6f9b19d.

⛔ Files ignored due to path filters (1)
  • .github/ISSUE_TEMPLATE/bug_report.md is 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: Align github.actor lists or confirm intended difference.
The draft-new-release workflow excludes chandumlg and saikumarrs from github.actor, while create-hotfix-branch includes all nine. Verify whether this restriction is intentional or update draft-new-release.yml to match.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Sep 30, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.79%. Comparing base (892ebd7) to head (6f9b19d).
⚠️ Report is 2 commits behind head on develop.

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.
📢 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

@maheshkutty
maheshkutty merged commit bd2e1bc into develop Oct 1, 2025
@maheshkutty
maheshkutty deleted the chore.triggering_actor branch October 1, 2025 05:28
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.

3 participants