Google Workspace CLI — one command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more. Dynamically built from Google Discovery Service. Includes AI agent skills.
This report summarizes scanner evidence for googleworkspace/cli, a Rust project with 31,290 GitHub stars. SynthScan examined 42,720 lines of code across 211 source files, recording 116 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 4.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 72 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 39 finding(s).
Which changes need focused human review? 116 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 116 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/google-workspace/src/validate.rs | 24 | // ── Dangerous character detection ───────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace/src/validate.rs | 63 | // ── Path validators ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace/src/validate.rs | 273 | // ── URL encoding ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace/src/validate.rs | 295 | // ── Resource / API validators ───────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/auth_commands.rs | 2027 | // ── is_workspace_admin_scope tests ────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/auth_commands.rs | 2104 | // ── is_workspace_admin_scope – new patterns ───────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/auth_commands.rs | 2132 | // ── scope_matches_service tests ────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/auth_commands.rs | 2239 | // ── services filter integration tests ──────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/output.rs | 25 | // ── Sanitization ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/output.rs | 45 | // ── Color ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/output.rs | 65 | // ── Stderr helpers ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/output.rs | 93 | // ── sanitize_for_terminal ───────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/output.rs | 149 | // ── colorize ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 463 | // ── Setup Wizard (unified TUI session) ────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 885 | // ── PickerState unit tests ────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 931 | // ── handle_key / key-sequence tests ───────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 1132 | // ── InputState tests ─────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 1225 | // ── GoBack key tests ─────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 1251 | // ── selected_count tests ─────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 1281 | // ── is_fixed item tests ──────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 1318 | // ── Single-select picker tests ───────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 1415 | // ── Template toggling tests ──────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 1552 | // ── Readonly/superset scope interaction tests ────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 1629 | // ── wrap_text tests ──────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 1674 | // ── PickerState::new initial selection tests ─────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup_tui.rs | 1691 | // ── Edge case tests ──────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 429 | // ── gcloud helpers ────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 743 | // ── API enabling ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 853 | // ── OAuth REST API ────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 915 | // ── Main setup orchestrator ───────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 1722 | // ── Action resolution (test-only) ─────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 1764 | // ── Helpers ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 1794 | // ── API / data tests ──────────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 1848 | // ── parse_setup_args tests ────────────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 1985 | // ── Account selection → gcloud action ─────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 2013 | // ── Project selection → gcloud action ─────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 2055 | // ── API selection → enable action ─────────────────────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 2115 | // ── Full pipeline: keys → picker → gcloud action ──────────── | COMMENT |
| MEDIUM | crates/google-workspace-cli/src/setup.rs | 2275 | // ── enable_apis unit tests ────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Cargo.toml | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace/Cargo.toml | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace/src/client.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace/src/error.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace/src/discovery.rs | 1 | #![allow(dead_code)] | COMMENT |
| LOW | crates/google-workspace/src/lib.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace/src/services.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace/src/validate.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace/src/validate.rs | 161 | COMMENT | |
| LOW | crates/google-workspace-cli/Cargo.toml | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/token_storage.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/credential_store.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/generate_skills.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/oauth_config.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/oauth_config.rs | 21 | //! "client_id": "...apps.googleusercontent.com", | COMMENT |
| LOW | crates/google-workspace-cli/src/client.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/error.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/discovery.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/fs_util.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/logging.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/logging.rs | 21 | //! ## Environment Variables | COMMENT |
| LOW | crates/google-workspace-cli/src/auth.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/auth.rs | 201 | } | COMMENT |
| LOW | crates/google-workspace-cli/src/formatter.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/formatter.rs | 21 | COMMENT | |
| LOW | crates/google-workspace-cli/src/services.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/auth_commands.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/auth_commands.rs | 841 | "slides" => vec!["presentations"], | COMMENT |
| LOW | crates/google-workspace-cli/src/auth_commands.rs | 1581 | /// (requires a Chat app or service account). | COMMENT |
| LOW | crates/google-workspace-cli/src/commands.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/schema.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/executor.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/executor.rs | 381 | COMMENT | |
| LOW | crates/google-workspace-cli/src/output.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/timezone.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/main.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/text.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/text.rs | 21 | /// Max chars for skill body method descriptions (markdown, agents benefit from detail). | COMMENT |
| LOW | crates/google-workspace-cli/src/setup_tui.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/validate.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/setup.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/docs.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/sheets.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/drive.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/mod.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/script.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/workflows.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/calendar.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/modelarmor.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/chat.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/chat.rs | 161 | /// We use `String` here to own the data, as it will be used to construct | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/events/mod.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/gmail/send.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/gmail/mod.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/gmail/mod.rs | 1301 | /// Read and validate attachments from `--attach` arguments. | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/gmail/read.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/gmail/reply.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | …ates/google-workspace-cli/src/helpers/gmail/forward.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | crates/google-workspace-cli/src/helpers/gmail/triage.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | scripts/show-art.sh | 1 | #!/bin/bash | COMMENT |
| 10 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/google-workspace-cli/src/setup.rs | 1937 | "user@example.com", | CODE |
| LOW | crates/google-workspace-cli/src/setup.rs | 1945 | assert!(msg.contains("user@example.com")); | CODE |
| LOW | crates/google-workspace-cli/src/helpers/gmail/mod.rs | 2681 | assert!(m.email.contains("foo@bar.com")); | CODE |
| LOW | skills/recipe-sync-contacts-to-sheet/SKILL.md | 27 | 3. Append each contact row: `gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Jane Doe", "jane@c | CODE |
| LOW | skills/recipe-log-deal-update/SKILL.md | 27 | 3. Append new row: `gws sheets +append --spreadsheet SHEET_ID --range 'Pipeline' --values '["2024-03-15", "Acme Corp", " | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/google-workspace-cli/src/helpers/README.md | 46 | ### ✅ Good Flags (control orchestration) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/coverage.sh | 18 | # Check if cargo-llvm-cov is installed | COMMENT |