Skip to content

ci(secret-paths): sync generated manifest on dispatch - #5643

Merged
shekhar-rudder merged 8 commits into
developfrom
harness/RUD-3251-ci-secret-paths-sync-generated-46ba7721
Oct 12, 2026
Merged

shekhar-rudder merged 8 commits into
developfrom
harness/RUD-3251-ci-secret-paths-sync-generated-46ba7721

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

Adds a dispatch-triggered workflow that regenerates the transformer-owned secret-path manifest and maintains one fixed-branch rolling pull request when the artifact changes.

Please explain the objectives of your changes below

  • Accepts the regenerate-secret-path-manifest repository dispatch from the trusted rudderstack-github-actions[bot] actor, plus manual runs; either way it regenerates from transformer develop.
  • Reads current rudder-integrations-config main directly; that repository no longer has a develop branch.
  • Runs the prerequisite secret-paths generator inside the transformer toolchain and byte-compares its deterministic artifact.
  • Relies on concurrency: cancel-in-progress to supersede a run when a newer integrations-config merge dispatches again.
  • Maintains fix/sync-secret-path-manifest through SHA-guarded GitHub Contents API writes and one rolling PR.
  • Reports only destination identifiers (from the generator's --summary output) and source revision in the generated PR body—never credential values, fixture secrets, raw paths, or generated diff fragments.
  • Creates the App token only after generation, scoped to rudder-transformer with contents: write and pull-requests: write, using vars.RELEASE_APP_ID and secrets.RELEASE_PRIVATE_KEY.

Dependency and rollout order

The prerequisite generator PR (#5595) must land first, including its --summary flag. This receiver should then land before the integrations-config dispatcher PR (#2804).

Validation

  • npm run lint
  • actionlint .github/workflows/sync-secret-path-manifest.yml
  • Verified every uses: reference is pinned to a full 40-character SHA

@rudder-devbox
rudder-devbox Bot requested review from a team as code owners October 9, 2026 11:20
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 40f3e867-8372-4224-89bb-8228a0cc543d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@codecov

codecov Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.11%. Comparing base (25fca9d) to head (4d750a5).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5643   +/-   ##
========================================
  Coverage    92.11%   92.11%           
========================================
  Files          708      708           
  Lines        39526    39526           
  Branches      9262     9262           
========================================
  Hits         36409    36409           
  Misses        2852     2852           
  Partials       265      265           

☔ View full report in Codecov by Harness.
📢 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.

@shekhar-rudder

Copy link
Copy Markdown
Member

@rudder-devbox Address the comments

rudder-devbox and others added 5 commits October 9, 2026 22:41
- reuse env (INTEGRATIONS_CONFIG_REF, ROLLING_BRANCH, PR_TITLE) instead of re-hardcoding
- drop redundant npm run prepare (npm ci runs it), default fetch-depth, duplicate job permissions
- compare via git diff / git hash-object instead of temp-file copies and base64 decode
- exact ref lookup, gh api -f fields instead of jq temp bodies, drop unused step outputs
- build PR body with a bash heredoc; drop unreachable multi-PR branch

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Drop the integrations-config refresh-and-regenerate step; concurrency
  cancel-in-progress already supersedes a run when a newer dispatch lands.
  The PR body takes its revision from the initial checkout.
- Take the changed-destination summary from the generator's --summary
  output instead of re-implementing drift classification inline.
- Drop the redundant event-action check and the manual-run guard, which
  enforced nothing; origin validation now runs only for repository_dispatch.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@shekhar-rudder
shekhar-rudder force-pushed the harness/RUD-3251-ci-secret-paths-sync-generated-46ba7721 branch from 382cec3 to f951b00 Compare October 9, 2026 17:11
@shekhar-rudder

Copy link
Copy Markdown
Member

@rudder-devbox Resolve all review comments

shekhar-rudder and others added 3 commits October 12, 2026 12:12
…with develop

- Call generate:secret-paths with SECRET_PATHS_INTEGRATIONS_CONFIG; the
  generator on develop has no secret-paths script, --integrations-config
  or --summary flag.
- Build the PR body without a per-destination summary; the PR diff
  already shows which destinations changed.
- Close the open rolling PR when develop already has the current
  manifest, so a stale PR cannot revert it.
- Rebuild the rolling branch as one commit on current develop through
  the Git Data API and move the ref once, so it never conflicts and the
  head never points at a commit already in develop.
- Ignore cross-repository PRs when looking up the rolling PR.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Share one rolling-PR lookup between the close and create/edit paths,
compute base and integrations-config revisions where they are used,
sparse-check out only the destinations directory, and drop the
redundant ref probe and blob POST from the branch update.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The sending App's bot login can change; dispatching already requires
write access to this repo, so keep only the payload source marker.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

@shekhar-rudder
shekhar-rudder merged commit fd806a3 into develop Oct 12, 2026
38 checks passed
@shekhar-rudder
shekhar-rudder deleted the harness/RUD-3251-ci-secret-paths-sync-generated-46ba7721 branch October 12, 2026 07:14
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.

2 participants