Skip to content

Commit 99be5f0

Browse files
committed
Use SSL verification when getting OPA binary
1 parent e47304f commit 99be5f0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/confcom/azext_confcom/lib

src/confcom/azext_confcom/lib/opa.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
def opa_get():
2323

2424
opa_fetch_resp = requests.get(
25-
f"https://openpolicyagent.org/downloads/v1.10.1/opa_{platform.system().lower()}_amd64")
25+
f"https://openpolicyagent.org/downloads/v1.10.1/opa_{platform.system().lower()}_amd64",
26+
verify=True,
27+
)
2628
opa_fetch_resp.raise_for_status()
2729

2830
assert hashlib.sha256(opa_fetch_resp.content).hexdigest() == _expected_sha256

0 commit comments

Comments
 (0)