Skip to content

ci: point the dispatch at the dedicated Postman app - #40

Merged
cb-logesh merged 1 commit into
mainfrom
cb-logesh/postman-dispatch-app-secrets
Sep 3, 2026
Merged

ci: point the dispatch at the dedicated Postman app#40
cb-logesh merged 1 commit into
mainfrom
cb-logesh/postman-dispatch-app-secrets

Conversation

@cb-logesh

Copy link
Copy Markdown
Contributor

What

Swaps the two secret names in notify-postman.yml from CB_SDK_BOT_APP_ID / CB_SDK_BOT_PEM_KEY to the dedicated app's POSTMAN_DISPATCH_APP_ID / POSTMAN_DISPATCH_PEM_KEY. Six lines, no logic change.

Why

Per @Krishna's guidance in #ask-cloud: this is a recurring automation rather than a one-off, so it should authenticate as a GitHub App instead of a personal access token, since token rotation would become a maintenance burden. A dedicated app was provisioned for it, installed on chargebee/cb-openapi-generator alone with Contents: write — the single permission repository_dispatch requires. It holds no access to this repository.

The PAT alternative was abandoned; that request and its revert PR (#39) are both closed.

Verified working

Ran the workflow against this branch before opening, so the credentials are proven rather than assumed:

https://github.com/chargebee/openapi/actions/runs/33764425769

Notified cb-openapi-generator of d0e29815656a3f711613ac948ba4536578cb6016.
Token revoked

That confirms the app id and key are valid, the app is installed on the target repo, and the permission is sufficient — HTTP 204 is the only path that prints that line. The token is revoked at job end, so nothing outlives the run.

Note on the receiving end

The consumer, postman-regenerate.yml, is still on an unmerged branch in cb-openapi-generator (chargebee/cb-openapi-generator#327). repository_dispatch only starts workflows present on the default branch, so until that PR lands the event is accepted and discarded. Harmless, and the same PR carries the hourly poll as a backstop, but end-to-end only closes once it merges.

Unchanged

Fail-soft behaviour. continue-on-error on the token step plus the empty-token check mean a missing or malformed key logs a notice and exits 0 rather than reporting a spec release as broken.

Swaps CB_SDK_BOT_APP_ID / CB_SDK_BOT_PEM_KEY for the dedicated app's
POSTMAN_DISPATCH_APP_ID / POSTMAN_DISPATCH_PEM_KEY. The app is installed on
chargebee/cb-openapi-generator alone with Contents: write, per the #ask-cloud
guidance to use an app rather than a rotating personal access token.
@cb-logesh
cb-logesh requested a review from cb-alish September 3, 2026 14:03
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: b5223d67-0c86-4f86-90a0-7ba9a7fa4bab


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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-03T14:06:02.657985Z d0e2981 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d0e2981565

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/notify-postman.yml
@cb-logesh
cb-logesh merged commit 2c7ce2c into main Sep 3, 2026
2 checks passed
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