mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 12:04:56 -07:00
update FatalUntrustedWorkspaceError message to include doc link (#25874)
This commit is contained in:
@@ -117,6 +117,10 @@ the following methods:
|
|||||||
These methods will trust the current workspace for the duration of the session
|
These methods will trust the current workspace for the duration of the session
|
||||||
without prompting.
|
without prompting.
|
||||||
|
|
||||||
|
For detailed instructions on managing folder trust within CI/CD workflows,
|
||||||
|
review the
|
||||||
|
[Gemini CLI trust guidance for GitHub Actions](https://github.com/google-github-actions/run-gemini-cli/blob/main/docs/trust-guidance.md).
|
||||||
|
|
||||||
## Overriding the trust file location
|
## Overriding the trust file location
|
||||||
|
|
||||||
By default, trust settings are saved to `~/.gemini/trustedFolders.json`. If you
|
By default, trust settings are saved to `~/.gemini/trustedFolders.json`. If you
|
||||||
|
|||||||
@@ -96,7 +96,9 @@ const folderTrustCheck: WarningCheck = {
|
|||||||
|
|
||||||
if (isHeadlessMode()) {
|
if (isHeadlessMode()) {
|
||||||
throw new FatalUntrustedWorkspaceError(
|
throw new FatalUntrustedWorkspaceError(
|
||||||
'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.',
|
'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. ' +
|
||||||
|
'For more details, see https://geminicli.com/docs/cli/trusted-folders/#headless-and-automated-environments',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user