Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Feature request: Sync repo/org secrets to local .env for local development

Đang mở
#598 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
github, github-actions, typescript, vscode

Hướng nghiên cứu

Không có tệp hoặc bài kiểm thử nào được nêu tên. Hãy bắt đầu bằng cách lần theo các view Secrets và Variables hiện có cùng luồng đăng nhập GitHub, sau đó xác minh liệu việc truy xuất giá trị secret được đề xuất có được hỗ trợ một cách an toàn hay không. Được xem là hoàn tất khi command xem trước tên các secret trong phạm vi, xác nhận trước khi ghi vào .env ở thư mục gốc của workspace và thêm nó vào .gitignore nếu chưa có.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

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"

  1. Authenticate via existing GitHub login
  2. Fetch secret names for current repo + environments (same scope as Secrets view)
  3. Preview available secrets (names only)
  4. On confirm, fetch decrypted values (workflow-execution approach or new API endpoint)
  5. Write .env at 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 → .env written at workspace root
  • .env auto-.gitignore-d if absent
Ngôn ngữ chính
TypeScript
Star
661
Fork
214
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/vscode-github-actions

Tất cả issue của github/vscode-github-actions

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.