Repository navigation
chore(ci): authenticate Trigger.dev deploys with per-environment API keys - #9423
Merged
Merged
Conversation
…keys Map TRIGGER_ACCESS_TOKEN from TRIGGER_ACCESS_TOKEN_PROD/_STAGING/_PREVIEW, falling back to the shared TRIGGER_ACCESS_TOKEN until those secrets exist. Bump trigger.dev CLI and @trigger.dev/* to 4.7.6, the first line where promote accepts environment API keys (4.7.0) and a mismatched --env errors instead of deploying to the key's environment (4.7.5).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryThis PR switches Trigger.dev deployments to separate keys for production, staging, and preview.
No actionable issues were found. Deployment, installation, and runtime tests were not run.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TRIGGER_ACCESS_TOKENfrom an environment-scoped secret:TRIGGER_ACCESS_TOKEN_PRODonmain,TRIGGER_ACCESS_TOKEN_STAGINGonstaging,TRIGGER_ACCESS_TOKEN_PREVIEWfor thedevpreview branchTRIGGER_ACCESS_TOKEN, so deploys keep working until the new secrets exist; the empty-token guards still fail fasttrigger.devCLI and@trigger.dev/{sdk,core,build}from 4.5.16 to 4.7.6 (CLI and packages must match or the CLI aborts in CI):deploy, butpromoteonly accepts them from 4.7.0--envthat doesn't match the key's environment is an error; before, the deploy silently went to the key's environmentminimumReleaseAgewrite:deploymentsscope as deploy, so a Deploy only key covers bothType of Change
Testing
actionlinton both workflows (no new findings)chat.agent, which this repo doesn't use;runtimeis pinned tonode-24, so the 4.7.2 default-runtime change doesn't apply; thezodoverride keeps 4.3.6stagingChecklist
test-auditauthoring gate)