Skip to content

fix(ci): stop repointing staging webhook on releases, drop secret dump - #566

Merged
Aslemammad merged 1 commit into
mainfrom
fix/ci-staging-webhook-and-secrets
Nov 5, 2026
Merged

Aslemammad merged 1 commit into
mainfrom
fix/ci-staging-webhook-and-secrets

Conversation

@Aslemammad

Copy link
Copy Markdown
Member

Follow-up to INC-941 (staging app key leak).

Staging webhook pointed at prod after every release. The cr job has no environment:, so on v* tags it runs with the repo-level secrets (the staging app, 859925) while API_URL is the Production deployment. update-webhook-url.ts then pointed the staging app's webhook at the prod deployment, so every staging delivery returned 500 until the next main push. That was the state this morning (webhook on b61f21da.pkg-pr-new.pages.dev). The step now skips tag runs.

Secrets written to disk. script/ci.ts wrote every NITRO_* secret plus GITHUB_TOKEN to packages/app/.dev.vars, where every later step in the job could read it, including the playground publish. Nothing in the job reads real values from that file: update-webhook-url.ts gets them from its step env, and dotenv doesn't override existing env vars. Removed the step, the script, the leftover commented copy in test.yml, and the unused GITHUB_TOKEN on the webhook step.

Testing: this PR's own CI run (same-repo branch) runs deploy + cr, so it exercises the webhook update and the playground publish without ci.ts. Tag behavior can only be checked on the next release.

🤖 Generated with Claude Code

The cr job has no environment, so on tag releases it runs with the
repo-level (staging app) secrets while API_URL is the Production
deployment. update-webhook-url.ts then pointed the staging app's webhook
at the prod deployment, and every staging delivery failed with 500 until
the next main push. Skip that step on tags.

script/ci.ts wrote every NITRO_* secret plus GITHUB_TOKEN to
packages/app/.dev.vars in the workspace, where every later step
(including the playground publish) could read it. Nothing in the job
reads that file for real values: update-webhook-url.ts gets them from its
step env, and dotenv does not override existing env vars. Remove the step
and the script, and drop the unused GITHUB_TOKEN from the webhook step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@continuous-releases-staging

Copy link
Copy Markdown
  • example-1

  • example-2

    npm i https://8a019288.stackblitz-cr.pages.dev/stackblitz-labs/pkg.pr.new/pkg-pr-new@566
    
    npm i https://8a019288.stackblitz-cr.pages.dev/stackblitz-labs/pkg.pr.new/playground-a@566
    
    npm i https://8a019288.stackblitz-cr.pages.dev/stackblitz-labs/pkg.pr.new/playground-b@566
    

commit: 076c905

@Aslemammad
Aslemammad merged commit 07d57d6 into main Nov 5, 2026
6 checks passed
@Aslemammad
Aslemammad deleted the fix/ci-staging-webhook-and-secrets branch November 5, 2026 07:46

This branch was successfully deployed

1 active deployment
Staging — 076c9054 Deployed Nov 4, 2026 by Aslemammad via Deploy #1970
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