Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Allow trusted host init scripts to preserve direct-script review

オープン
#2,466 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java, powershell, python, shell

調査の方向性

まず、組み込み shell ツールの承認および直接スクリプトのレビューのフローを、公開されているセッション単位の shell.initScripts API と併せて追跡します。Bash と PowerShell のホストアクティベーションスクリプトがどのように表現されているかを比較し、そのうえで、ユーザーが制御するスクリプトや読み取り不能なスクリプトに対するレビューを弱めることなく、正確な内容または信頼メタデータをレビュー対象のアクションにどのように結び付けられるかを判断します。明示的に信頼され、更新可能なホストスクリプトに対する安全な直接スクリプトレビューを維持できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

vs-code

Context

VS Code is adopting the public per-session shell.initScripts API so the SDK built-in shell tool can load the user's shell profile and activate the workspace-selected Python environment:

https://github.com/microsoft/vscode/pull/332593

Observed behavior

With no init scripts configured, a direct script invocation can be reviewed using the script and interpreter content under the normal permission flow.

When the same session has any host-provided shell.initScripts entry, the direct script invocation instead requires explicit approval because the shell environment can alter the script action.

This is secure as a conservative default, but it means an SDK consumer cannot opt into a known, host-generated activation script without changing approval behavior for otherwise identical direct script commands.

Ask

Please consider a public SDK contract for trusted host-provided init scripts that preserves safe direct-script review when possible.

Possible shapes include:

  • allowing the SDK/runtime to incorporate the exact init-script content into the reviewed action/fingerprint; or
  • adding explicit trust metadata for host-generated init scripts, with a conservative default for existing callers.

The behavior must remain secure when init scripts are user-controlled, mutable, unreadable, or otherwise cannot be bound to the reviewed action.

Consumer requirements

  • Per-session and updateable, matching shell.initScripts.
  • Applies to the built-in shell tool.
  • Does not weaken approval for arbitrary or unbound startup scripts.
  • Works for Bash and PowerShell host activation scripts.
主要言語
Java
スター
10.5k
フォーク
1.5k
平均マージ
1日 9時間
マージ済み PR(30日)
130

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/copilot-sdk のほかの issue

github/copilot-sdk の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。