diff --git a/README.md b/README.md index 98fc112..f57fbcc 100644 --- a/README.md +++ b/README.md @@ -62,3 +62,6 @@ To enable it, run `git config --global diff.sops.textconv sops-git-diff-helper` ``` *.yaml diff=sops ``` + +## Contribute and test +In order to run test, the dev sops pgp key should be imported first, as explained [here](https://github.com/getsops/sops?tab=readme-ov-file#21test-with-the-dev-pgp-key). diff --git a/main.go b/main.go index b0489f5..b4adba7 100644 --- a/main.go +++ b/main.go @@ -37,5 +37,9 @@ func main() { fmt.Fprintf(os.Stderr, "[helm-sops] Error: %s\n", err) } + if len(w.Errors) > 0 && w.ExitCode == 0 { + w.ExitCode = 10 + } + os.Exit(w.ExitCode) }