Skip to content

Commit 3d0536a

Browse files
emilyhedlundSandyTao520
authored andcommitted
update FatalUntrustedWorkspaceError message to include doc link (#25874)
1 parent 6e64110 commit 3d0536a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

docs/cli/trusted-folders.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ the following methods:
117117
These methods will trust the current workspace for the duration of the session
118118
without prompting.
119119

120+
For detailed instructions on managing folder trust within CI/CD workflows,
121+
review the
122+
[Gemini CLI trust guidance for GitHub Actions](https://github.com/google-github-actions/run-gemini-cli/blob/main/docs/trust-guidance.md).
123+
120124
## Overriding the trust file location
121125

122126
By default, trust settings are saved to `~/.gemini/trustedFolders.json`. If you

packages/cli/src/utils/userStartupWarnings.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ const folderTrustCheck: WarningCheck = {
9696

9797
if (isHeadlessMode()) {
9898
throw new FatalUntrustedWorkspaceError(
99-
'Gemini CLI is not running in a trusted directory. To proceed, either use `--skip-trust`, set the `GEMINI_CLI_TRUST_WORKSPACE=true` environment variable, or trust this directory in interactive mode.',
99+
'Gemini CLI is not running in a trusted directory. To proceed, either use `--skip-trust`, ' +
100+
'set the `GEMINI_CLI_TRUST_WORKSPACE=true` environment variable, or trust this directory in interactive mode. ' +
101+
'For more details, see https://geminicli.com/docs/cli/trusted-folders/#headless-and-automated-environments',
100102
);
101103
}
102104

0 commit comments

Comments
 (0)