Title: Feature request: Sync repo/org secrets to local .env for local development · Issue #598 · github/vscode-github-actions · GitHub
Open Graph Title: Feature request: Sync repo/org secrets to local .env for local development · Issue #598 · github/vscode-github-actions
X Title: Feature request: Sync repo/org secrets to local .env for local development · Issue #598 · github/vscode-github-actions
Description: Problem Developers working locally must manually copy secrets into .env. Error-prone. Painful at scale. Drift between CI and local dev. Extension already lists secret names in "Secrets" and "Variables" views. Cannot bridge to local env. ...
Open Graph Description: Problem Developers working locally must manually copy secrets into .env. Error-prone. Painful at scale. Drift between CI and local dev. Extension already lists secret names in "Secrets" and "Variab...
X Description: Problem Developers working locally must manually copy secrets into .env. Error-prone. Painful at scale. Drift between CI and local dev. Extension already lists secret names in "Secrets" a...
Opengraph URL: https://github.com/github/vscode-github-actions/issues/598
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature request: Sync repo/org secrets to local .env for local development","articleBody":"## Problem\n\nDevelopers working locally must manually copy secrets into `.env`. Error-prone. Painful at scale. Drift between CI and local dev.\n\nExtension already lists secret names in \"Secrets\" and \"Variables\" views. Cannot bridge to local env.\n\n## Proposed solution\n\nAdd command: **\"GitHub Actions: Pull Secrets to .env\"**\n\n1. Authenticate via existing GitHub login\n2. Fetch secret names for current repo + environments (same scope as Secrets view)\n3. Preview available secrets (names only)\n4. On confirm, fetch decrypted values (workflow-execution approach or new API endpoint)\n5. Write `.env` at workspace root (configurable)\n\n## Alternatives\n\n| Option | Gap |\n|---|---|\n| Manual `.env` | Current flow — time-consuming, drift-prone |\n| `act` + secret file | Need values already local. No help sourcing |\n| GitHub Codespaces | Auto-injects. But only for Codespaces, not local |\n| `gh` extension | Separate tool, extra auth context |\n\n## Constraints\n\n- GitHub API does not expose secret plaintext (encrypted at rest by design)\n- Needs either: new API endpoint OR one-time workflow that echoes base64-encoded secret values\n- Solution parallel to how Codespaces injects secrets into the environment\n\n## Prior art\n\n- **Codespaces**: already auto-injects secrets into dev environment. This request brings parity to local dev.\n- **#222** (500+ reactions): clear demand for improved secrets UX in extension\n\n## Success criteria\n\n- Open local repo in VS Code → run \"Pull Secrets to .env\"\n- GitHub auth (once) → see available secrets by scope\n- Confirm → `.env` written at workspace root\n- `.env` auto-`.gitignore`-d if absent","author":{"url":"https://github.com/xgboosted","@type":"Person","name":"xgboosted"},"datePublished":"2026-05-27T14:24:36Z","url":"https://github.com/github/vscode-github-actions/issues/598"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c6dc6a3a-d0f3-5cf1-6329-ecc73574a4b7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9764:252A90:D96AA:130FDF:6AFD7C87 |
| html-safe-nonce | 3a217dee03eaefbf2ee2187904ffdbf02dd0874b7c9d9670ab8c067d4425abf6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzY0OjI1MkE5MDpEOTZBQToxMzBGREY6NkFGRDdDODciLCJ2aXNpdG9yX2lkIjoiNDYyMjU2MzcyMDY4NDIwNzIzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8a78dbc348d9dde1cf4bd28108bcbbe17c9696d3f047e4bd89245d905e77c4a0 |
| hovercard-subject-tag | issue:4533109739 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/vscode-github-actions/598/issue_layout |
| twitter:image | https://opengraph.githubassets.com/645503e913ab717601aff49ea93142b1a0e754d890bd525e96cc650965296597/github/vscode-github-actions/issues/598 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/645503e913ab717601aff49ea93142b1a0e754d890bd525e96cc650965296597/github/vscode-github-actions/issues/598 |
| og:image:alt | Problem Developers working locally must manually copy secrets into .env. Error-prone. Painful at scale. Drift between CI and local dev. Extension already lists secret names in "Secrets" and "Variab... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xgboosted |
| hostname | github.com |
| expected-hostname | github.com |
| None | 544ff6b59bd215c4609120f6e334dbd0b00d34fb6f8bc03a476f72256998887e |
| turbo-cache-control | no-preview |
| go-import | github.com/github/vscode-github-actions git https://github.com/github/vscode-github-actions.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 616663763 |
| octolytics-dimension-repository_nwo | github/vscode-github-actions |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 616663763 |
| octolytics-dimension-repository_network_root_nwo | github/vscode-github-actions |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 71c92f8b27ec5e9aa6f6477b4e067a4727fc9edb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width