Skip to content

PurpleBooth/git-duet-wrap-for-sops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git-Duet: Wrapper for SOPS

I use SOPS for encrypting a few bits an pieces. One thing I like to do is keep my Dotfiles in a repository, so I thought it might be a neat thing to keep my git duet authors files encrypted. This saves my pairs emails from being reveled to the world.

I don't really intend anyone other than me use this.

Setup

I have it setup like this

tree ~/.bin/git-*
/Users/billie/.bin/git-duet-pre-commit -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-solo -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet-install-hook -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet-merge -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet-revert -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet-prepare-commit-msg -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet-post-commit -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet-commit -> /usr/local/bin/git-duet-wrap-for-sops

With $HOME/.bin on my path.

The name of the binary is used by my script to decide what git duet command to call.

It expects the your authors file to be encrypted at $HOME/.config/git-duet/authors.yml and you to have a service account key at $HOME/.config/gcloud/application_sops_credentials.json

Usage

Once setup simply use git-duet as normal.

Installing

First tap my homebrew repo

brew tap PurpleBooth/repo

Next install the binary

brew install PurpleBooth/repo/git-duet-wrap-for-sops

You can also download the latest release and run it.

License

CC0 - Public Domain