Feature request: Sync repo/org secrets to local .env for local development
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- github, github-actions, typescript, vscode
研究方向
未指定任何檔案或測試。先追蹤現有的 Secrets 和 Variables 檢視畫面以及 GitHub 登入流程,然後確認是否能安全支援所提議的 secret 值擷取。完成條件是:該指令預覽範圍內的 secret 名稱,在寫入 workspace 根目錄的 .env 前要求確認,並在 .gitignore 不存在時將其加入。
由索引模型根據 Issue 內容生成。
描述
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.
Proposed solution
Add command: "GitHub Actions: Pull Secrets to .env"
- Authenticate via existing GitHub login
- Fetch secret names for current repo + environments (same scope as Secrets view)
- Preview available secrets (names only)
- On confirm, fetch decrypted values (workflow-execution approach or new API endpoint)
- Write
.envat workspace root (configurable)
Alternatives
| Option | Gap |
|---|---|
Manual .env |
Current flow — time-consuming, drift-prone |
act + secret file |
Need values already local. No help sourcing |
| GitHub Codespaces | Auto-injects. But only for Codespaces, not local |
gh extension |
Separate tool, extra auth context |
Constraints
- GitHub API does not expose secret plaintext (encrypted at rest by design)
- Needs either: new API endpoint OR one-time workflow that echoes base64-encoded secret values
- Solution parallel to how Codespaces injects secrets into the environment
Prior art
- Codespaces: already auto-injects secrets into dev environment. This request brings parity to local dev.
- #222 (500+ reactions): clear demand for improved secrets UX in extension
Success criteria
- Open local repo in VS Code → run "Pull Secrets to .env"
- GitHub auth (once) → see available secrets by scope
- Confirm →
.envwritten at workspace root .envauto-.gitignore-d if absent
- 主要語言
- TypeScript
- 星號
- 661
- 分支
- 214
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/vscode-github-actions 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 76/100
github/vscode-github-actions#627 · 1 個 reaction ·
-
難度 5/5 一週以上 新手友好度 20/100
github/vscode-github-actions#630 · 1 個 reaction ·
-
long work 未關閉
難度 4/5 3-5 天 新手友好度 25/100
github/vscode-github-actions#628 ·
-
bug
難度 3/5 1-2 天 新手友好度 55/100
github/vscode-github-actions#625 ·
-
bug
難度 3/5 1-2 天 新手友好度 64/100
github/vscode-github-actions#621 · 3 則留言 ·
查看 github/vscode-github-actions 的全部 Issue
相似的 Issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs 未關閉
難度 2/5 1-3 小時 新手友好度 70/100
-
Crush 未關閉
難度 1/5 1 小時以內 新手友好度 85/100
catppuccin/catppuccin#3125 ·
-
難度 1/5 1 小時以內 新手友好度 90/100
ElementsProject/cln-application#167 · 1 則留言 · 1 個 reaction ·
-
難度 2/5 1-3 小時 新手友好度 75/100
Quantco/pnpm-licenses#17 ·
-
難度 2/5 1-3 小時 新手友好度 75/100