sops: pass empty manifest when decrypting
All checks were successful
build / test (pull_request) Successful in 28s

This commit is contained in:
Jörg Thalheim 2023-08-10 12:05:17 +02:00
parent 0640c1a436
commit c2ff6acef4

View File

@ -162,7 +162,10 @@ def encrypt_file(
def decrypt_file(secret_path: Path) -> str:
cmd = nix_shell(["sops"], ["sops", "--decrypt", str(secret_path)])
with sops_manifest([]) as manifest:
cmd = nix_shell(
["sops"], ["sops", "--config", str(manifest), "--decrypt", str(secret_path)]
)
res = subprocess.run(cmd, check=True, stdout=subprocess.PIPE, text=True)
return res.stdout