Skip to content

Instantly share code, notes, and snippets.

@esys
Created November 3, 2020 17:56
Show Gist options
  • Save esys/769d5b1b753b52c713a2db285eef3f3d to your computer and use it in GitHub Desktop.
Save esys/769d5b1b753b52c713a2db285eef3f3d to your computer and use it in GitHub Desktop.
pre-commit git sops hook test2
$ sops -d -i my-secrets.yaml
$ git add my-secrets.yaml && git commit -m "commit with unencrypted secret"
💥 File env/bel1/c1/helm_vars/my-secrets.yaml has non encrypted secrets!
🤔 Do you still want to commit? (y|Y to commit) n
aborted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment