Skip to content

fix: Add explicit secrets declarations to release workflow_call trigger#11619

Merged
anthonyshew merged 1 commit intomainfrom
fix/release-workflow-secrets
Feb 1, 2026
Merged

fix: Add explicit secrets declarations to release workflow_call trigger#11619
anthonyshew merged 1 commit intomainfrom
fix/release-workflow-secrets

Conversation

@anthonyshew
Copy link
Copy Markdown
Contributor

Summary

  • Adds explicit secrets declarations to the workflow_call trigger in the release workflow
  • Documents the required secrets contract for callers: NPM_TOKEN, TURBO_TOKEN, DOCS_ALIAS_FAILURE_SLACK_WEBHOOK_URL

Why

When the release workflow is called via workflow_call (e.g., from turborepo-canary.yml), secrets must be explicitly passed or inherited. Making these requirements explicit:

  1. Enables early failure if required secrets are missing (fail-fast at workflow invocation rather than mid-pipeline)
  2. Documents the contract for any workflow calling this one
  3. Follows GitHub Actions best practices for reusable workflows

Testing

  • Verified all three secrets are actually used in the workflow
  • No runtime behavior change - this is purely declarative

When called via workflow_call, the release workflow requires NPM_TOKEN,
TURBO_TOKEN, and DOCS_ALIAS_FAILURE_SLACK_WEBHOOK_URL secrets. Making
these explicit improves contract clarity and enables early validation
when secrets are missing.
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Feb 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
examples-basic-web Ready Ready Preview, Comment, Open in v0 Feb 1, 2026 9:10pm
examples-designsystem-docs Ready Ready Preview, Comment, Open in v0 Feb 1, 2026 9:10pm
examples-gatsby-web Ready Ready Preview, Comment, Open in v0 Feb 1, 2026 9:10pm
examples-kitchensink-blog Ready Ready Preview, Comment, Open in v0 Feb 1, 2026 9:10pm
examples-nonmonorepo Ready Ready Preview, Comment, Open in v0 Feb 1, 2026 9:10pm
examples-svelte-web Ready Ready Preview, Comment, Open in v0 Feb 1, 2026 9:10pm
examples-tailwind-web Ready Ready Preview, Comment, Open in v0 Feb 1, 2026 9:10pm
examples-vite-web Ready Ready Preview, Comment, Open in v0 Feb 1, 2026 9:10pm
turbo-site Ready Ready Preview, Comment, Open in v0 Feb 1, 2026 9:10pm
turborepo-test-coverage Ready Ready Preview, Comment, Open in v0 Feb 1, 2026 9:10pm

@anthonyshew anthonyshew requested a review from a team as a code owner February 1, 2026 21:09
@anthonyshew anthonyshew requested review from tknickman and removed request for a team February 1, 2026 21:09
@ghost ghost added the area: ci Internal CI for vercel/turborepo label Feb 1, 2026
@anthonyshew anthonyshew merged commit d6ca8cd into main Feb 1, 2026
40 checks passed
@anthonyshew anthonyshew deleted the fix/release-workflow-secrets branch February 1, 2026 21:11
anthonyshew added a commit that referenced this pull request Feb 1, 2026
## Summary

Updates the canary workflow to pass secrets explicitly to the release
workflow, fixing the validation error introduced by the explicit
`secrets` declarations in #11619.

## Why

The release workflow now declares required secrets with `required:
true`. Using `secrets: inherit` doesn't satisfy this validation -
secrets must be passed explicitly.

This is also a security improvement: the canary workflow now only passes
the 3 required secrets rather than inheriting all repository secrets.
anthonyshew pushed a commit that referenced this pull request Feb 1, 2026
## Canary Release

Versioned docs: https://v2-8-2-canary-3.turborepo.dev

### Included Changes

- 469f9dd - fix: Upgrade ts-jest to 29.4.6 to fix brace-expansion ReDoS
vulnerabilities (#11623) (#11623)
- af6aef8 - fix: Upgrade inquirer to 8.2.7 to fix tmp vulnerability
(#11622) (#11622)
- 73e1a65 - fix: Consolidate canary releases into release workflow for
npm trusted publishing (#11624) (#11624)
- e192b8e - fix: Upgrade diff to fix DoS vulnerabilities (#11621)
(#11621)
- c79e54e - fix: Upgrade rehype packages to fix mdast-util-to-hast
vulnerability (#11616) (#11616)
- aceb210 - fix: Pass secrets explicitly in canary workflow (#11620)
(#11620)
- d6ca8cd - fix: Add explicit secrets declarations to release
workflow_call trigger (#11619) (#11619)
- a0c22ca - ci: Automated canary release pipeline (#11618) (#11618)

---
Release PR for turborepo v2.8.2-canary.3

Co-authored-by: Turbobot <turbobot@vercel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci Internal CI for vercel/turborepo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant