Repository navigation
ci(secret-paths): sync generated manifest on dispatch - #5643
shekhar-rudder merged 8 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
|
@rudder-devbox Address the comments |
- 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]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
382cec3 to
f951b00
Compare
|
@rudder-devbox Resolve all review comments |
…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]>
|



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
regenerate-secret-path-manifestrepository dispatch from the trustedrudderstack-github-actions[bot]actor, plus manual runs; either way it regenerates from transformerdevelop.rudder-integrations-configmaindirectly; that repository no longer has adevelopbranch.secret-pathsgenerator inside the transformer toolchain and byte-compares its deterministic artifact.concurrency: cancel-in-progressto supersede a run when a newer integrations-config merge dispatches again.fix/sync-secret-path-manifestthrough SHA-guarded GitHub Contents API writes and one rolling PR.--summaryoutput) and source revision in the generated PR body—never credential values, fixture secrets, raw paths, or generated diff fragments.rudder-transformerwithcontents: writeandpull-requests: write, usingvars.RELEASE_APP_IDandsecrets.RELEASE_PRIVATE_KEY.Dependency and rollout order
The prerequisite generator PR (#5595) must land first, including its
--summaryflag. This receiver should then land before the integrations-config dispatcher PR (#2804).Validation
npm run lintactionlint .github/workflows/sync-secret-path-manifest.ymluses:reference is pinned to a full 40-character SHA