Skip to content

feat(chezmoi): add 1Password CLI integration for private environments#81

Merged
paveg merged 1 commit intomainfrom
feat/1password-integration
Mar 3, 2026
Merged

feat(chezmoi): add 1Password CLI integration for private environments#81
paveg merged 1 commit intomainfrom
feat/1password-integration

Conversation

@paveg
Copy link
Owner

@paveg paveg commented Mar 3, 2026

Summary

  • Read name, email, npm_token from 1Password (Dotfiles vault) via onepasswordRead when op CLI is available in non-business environments
  • Fall back to promptStringOnce when op is absent or in business mode (CI included)
  • Unify GH Token vault URI to op://Dotfiles/GH Token/token
  • Remove ${NPM_TOKEN} env var fallback in .npmrc — auth line only emitted when 1Password provides a token
  • Fix deny patterns in settings.json.tmpl to use glob prefixes

Test plan

  • chezmoi init --source=. --dry-run --verbose with op available (private mode)
  • chezmoi data | grep -E 'name|email|npm_token|has_op' returns 1Password values
  • CI passes (op absent → fallback path, no 1Password calls)
  • just test passes locally

🤖 Generated with Claude Code

Read name, email, and npm token from 1Password (Dotfiles vault) when
op CLI is available in non-business environments. Falls back to
promptStringOnce when op is absent or in business mode. Unify GH Token
vault URI to op://Dotfiles/GH Token/token.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@paveg paveg merged commit ce83824 into main Mar 3, 2026
10 checks passed
@paveg paveg deleted the feat/1password-integration branch March 3, 2026 13:37
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