From e0a0eb2f85a8c9d9517787a1e2250c44253cd62c Mon Sep 17 00:00:00 2001 From: sledzikowy <48012758+sledzikowy@users.noreply.github.com> Date: Fri, 13 Dec 2024 13:06:30 +0100 Subject: [PATCH] Add abbility to set sops config location via envvar Signed-off-by: sledzikowy <48012758+sledzikowy@users.noreply.github.com> --- cmd/sops/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/sops/main.go b/cmd/sops/main.go index 42883ff37..68f9bd29c 100644 --- a/cmd/sops/main.go +++ b/cmd/sops/main.go @@ -1657,6 +1657,7 @@ func main() { cli.StringFlag{ Name: "config", Usage: "path to sops' config file. If set, sops will not search for the config file recursively.", + EnvVar: "SOPS_CONFIG", }, cli.StringFlag{ Name: "encryption-context",