Skip to content

fix: lead with --method oob for headless auth across skills#88

Merged
mathieubellon merged 1 commit into
mainfrom
fix/headless-auth-oob-consistency
Jun 23, 2026
Merged

fix: lead with --method oob for headless auth across skills#88
mathieubellon merged 1 commit into
mainfrom
fix/headless-auth-oob-consistency

Conversation

@mathieubellon

Copy link
Copy Markdown
Collaborator

Problem

The auth guidance disagreed with itself on how to log in from a headless environment (SSH session, container, devcontainer):

  • ggshield-cli-setup.md documented --method oob as preferred for interactive headless shells, but parked it in a "Headless and CI" section at the bottom. The primary Authenticate and verify step led with bare ggshield auth login and never cross-referenced the headless path — so unless you read to the end, you'd never learn oob was the preferred option.
  • gitguardian-platform.md and the scan-secrets troubleshooting entry told users to use --method token for headless, with no mention of oob — the opposite recommendation.
  • The scan-secrets troubleshooting entry also pointed at an onboarding subsection ("Headless / non-interactive environments") that no longer exists.

Two docs, two different answers for the same situation.

Fix

Reconcile every auth touchpoint to one doctrine:

Interactive headless (SSH/container/devcontainer) → lead with --method oob (ggshield 1.51.0+). --method token is the fallback when oob is unsupported. CI/non-interactive → GITGUARDIAN_API_KEY.

  • ggshield-cli-setup.md (×4) — one-line headless pointer in the primary auth step
  • gitguardian-platform.md (×6) — headless section rewritten to lead with oob, token demoted to fallback
  • scan-secrets/SKILL.md — troubleshooting entry leads with oob; stale cross-reference fixed to point at the setup reference's "Headless and CI"
  • scan-machine/SKILL.md, create-honeytokens/SKILL.md — mention oob first, token fallback

Duplicated references re-verified byte-identical after the edits; sanity tests pass (11/11).

🤖 Generated with Claude Code

The setup reference documented `--method oob` as preferred for interactive
headless shells, but the primary "Authenticate and verify" step led with bare
`ggshield auth login` and never pointed at the headless path. Meanwhile the
gitguardian-platform.md headless section and several SKILL.md troubleshooting
entries told users to reach for `--method token` — two docs, two different
answers for the same situation.

Reconcile all auth guidance to one doctrine: interactive headless
(SSH/container/devcontainer) leads with `--method oob` (ggshield 1.51.0+),
`--method token` is the fallback when oob is unsupported, CI uses
GITGUARDIAN_API_KEY.

- ggshield-cli-setup.md (x4): add a headless pointer in the primary auth step
- gitguardian-platform.md (x6): rewrite the headless section to lead with oob
- scan-secrets SKILL.md: troubleshooting entry now leads with oob and fixes a
  stale cross-reference to a non-existent onboarding subsection
- scan-machine / create-honeytokens SKILL.md: mention oob first, token fallback

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mathieubellon mathieubellon merged commit 796848e into main Jun 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant