Integrations
Integrations push a project's secrets to Vercel environment variables or GitHub Actions secrets, so deployments always use the values stored in Stash. Open a project and go to the Integrations tab (requires the Manage secrets permission). You paste your own access token; Stash stores it encrypted and only shows its last characters.
- Mappings: each Stash environment (e.g. prod, staging, dev) is mapped to a destination on the platform.
- Auto-sync: when enabled, every create, update, delete, import or rollback in a mapped environment is pushed automatically. You can also click Sync now.
- Safe deletes: Stash only removes variables it created itself; anything else on Vercel or GitHub is never touched.
- Disconnecting stops syncing; variables already pushed stay on the platform.
Vercel
- Create a token at vercel.com/account/tokens (Account Settings → Tokens → Create), scoped to the account or team that owns the project.
- For team projects, copy the Team ID from Team Settings → General → "Team ID".
- Click Connect Vercel, paste the token (and Team ID), load your projects and pick one.
- Map each Stash environment to Vercel's Production, Preview and/or Development targets. Each target can only be fed by one Stash environment.
GitHub Actions
- Create a fine-grained personal access token (Settings → Developer settings → Personal access tokens → Fine-grained).
- Under Repository access select the target repository, and grant Secrets: Read and write (plus Environments: Read and write if you use GitHub environments).
- Click Connect GitHub, paste the token and enter the repository (
owner/repoor its URL). - For each Stash environment choose Repository secrets or a GitHub environment (it must already exist in the repo). Each destination can be used once.
Note: GitHub secret names are uppercased (apiKey becomes APIKEY), and GitHub rejects keys starting with GITHUB_. Failed keys are listed in the integration's last sync details.