Answer: When you start a GitHub Copilot CLI session, you'll be asked to confirm that you trust the files in, and below, the directory from which you launched the CLI, choosing to trust it for the current session only or for this and future sessions. To edit the list of permanently trusted directories, open the CLI's config.json file (by default in a .copilot folder under your home directory) and edit the contents of the trustedFolders array. Status: Confirmed Entry: tool/github-copilot/permissions-and-security/set-trusted-directories Revision: 3 Digest: sha256:1490b219ea2581cc (changes whenever the content changes) Timeline: Created: 2026-11-13T03:24:20Z Last changed: 2026-11-19T12:56:30Z (array to edit: — → trustedFolders) Last verified: 2026-11-20T13:02:42Z Next check: 2026-11-21T13:02:42Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of config file | config.json | [1] | 2026-11-20 default macOS/Linux path | ~/.copilot/config.json | [1] | 2026-11-20 default Windows path | $HOME\.copilot\config.json | [1] | 2026-11-20 environment variable | COPILOT_HOME | [1] | 2026-11-20 array to edit | trustedFolders | [1] | 2026-11-20 Sources: [1] GitHub. "Configuring GitHub Copilot CLI - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/configure-copilot-cli Role: primary. Accessed: 2026-11-20T13:02:42Z Quote: "Trusted directories are stored in the automatically managed config.json file." (Supports: config file) Quote: "macOS/Linux : ~/.copilot/config.json" (Supports: default macOS/Linux path) Quote: "Windows : $HOME\.copilot\config.json" (Supports: default Windows path) Quote: "You can change the config location by setting the COPILOT_HOME environment variable." (Supports: environment variable) Quote: "Edit the contents of the trustedFolders array." (Supports: array to edit) Snapshot SHA-256: 13e80110407996f21917dfcb76e3c6741ab8485b51f6853dbe3151a104f2531a (captured 2026-11-18T12:57:01Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T12:56:59Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:02:42Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:02:42Z Last attempt: 2026-11-20T13:02:42Z Notes and limitations: Extracted automatically from a single official source (section "Setting trusted directories"). Related: https://latestn.com/tool/github-copilot/permissions-and-security/share-a-space How do I share a GitHub Copilot Space with others? https://latestn.com/tool/github-copilot/permissions-and-security/sign-out-remove-credentials How do I sign out and remove stored credentials in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/permissions-and-security/skip-permission-prompts-trusted-tools How do I skip permission prompts for trusted custom tools in the GitHub Copilot SDK? https://latestn.com/tool/github-copilot/permissions-and-security/sdk-refresh-tokens How do I refresh server-to-server tokens for the GitHub Copilot SDK? https://latestn.com/tool/github-copilot/permissions-and-security/sdk-session-isolation-guarantees What session-level isolation guarantees does the GitHub Copilot SDK provide? https://latestn.com/tool/github-copilot/permissions-and-security/secure-repository How do I secure my repository using GitHub Copilot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T12:56:30Z | changed | array to edit: — → trustedFolders | [1] 2026-11-19T12:56:30Z | changed | environment variable: — → COPILOT_HOME | [1] 2026-11-19T12:56:30Z | changed | default Windows path: — → $HOME\.copilot\config.json | [1] 2026-11-19T12:56:30Z | changed | default macOS/Linux path: — → ~/.copilot/config.json | [1] 2026-11-19T12:56:30Z | changed | config file: — → config.json | [1] 2026-11-19T12:56:30Z | changed | Array to edit: trustedFolders → — | [1] 2026-11-19T12:56:30Z | changed | Environment variable for config location: COPILOT_HOME → — | [1] 2026-11-19T12:56:30Z | changed | Default config location (Windows): $HOME\.copilot\config.json → — | [1] 2026-11-19T12:56:30Z | changed | Default config location (macOS/Linux): ~/.copilot/config.json → — | [1] 2026-11-19T12:56:30Z | changed | Config file: config.json → — | [1] 2026-11-17T13:19:00Z | changed | Array to edit: — → trustedFolders | [1] 2026-11-17T13:19:00Z | changed | Environment variable for config location: — → COPILOT_HOME | [1] 2026-11-17T13:19:00Z | changed | Default config location (Windows): — → $HOME\.copilot\config.json | [1] 2026-11-17T13:19:00Z | changed | Default config location (macOS/Linux): — → ~/.copilot/config.json | [1] 2026-11-17T13:19:00Z | changed | Config file: — → config.json | [1] 2026-11-17T13:19:00Z | changed | environment variable to change config location: COPILOT_HOME → — | [1] 2026-11-17T13:19:00Z | changed | default config path (Windows): $HOME\.copilot\config.json → — | [1] 2026-11-17T13:19:00Z | changed | default config path (macOS/Linux): ~/.copilot/config.json → — | [1] 2026-11-17T13:19:00Z | changed | array to edit: trustedFolders → — | [1] 2026-11-17T13:19:00Z | changed | trusted directories storage file: config.json → — | [1] 2026-11-13T03:24:20Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/permissions-and-security/set-trusted-directories/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/set-trusted-directories POST: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/set-trusted-directories with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/permissions-and-security/set-trusted-directories?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set trusted directories in GitHub Copilot CLI? Revision 3, last verified 2026-11-20T13:02:42Z. https://latestn.com/tool/github-copilot/permissions-and-security/set-trusted-directories (accessed 2026-11-21T09:57:57Z). @misc{LatestN_tool_github_copilot_permissions_and_security_set_trusted_directories_r3, title = {How do I set trusted directories in GitHub Copilot CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/permissions-and-security/set-trusted-directories}}, note = {Revision 3; digest sha256:1490b219ea2581cc; last verified 2026-11-20T13:02:42Z; accessed 2026-11-21T09:57:57Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/permissions-and-security/set-trusted-directories