sops: pass empty manifest when decrypting
All checks were successful
build / test (pull_request) Successful in 28s
All checks were successful
build / test (pull_request) Successful in 28s
This commit is contained in:
parent
0640c1a436
commit
c2ff6acef4
@ -162,7 +162,10 @@ def encrypt_file(
|
|||||||
|
|
||||||
|
|
||||||
def decrypt_file(secret_path: Path) -> str:
|
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)
|
res = subprocess.run(cmd, check=True, stdout=subprocess.PIPE, text=True)
|
||||||
return res.stdout
|
return res.stdout
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user