Skip to content

Commit

Permalink
Update min opa version
Browse files Browse the repository at this point in the history
  • Loading branch information
adhilto committed Feb 14, 2024
1 parent 9c0d570 commit 40afb0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,18 @@ Download executable the OPA executable file required to run this SCuBA tool.
options:
-h, --help show this help message and exit
-v {0.42.2,0.43.1,0.44.0,0.45.0,0.46.3,0.47.4,0.48.0,0.49.2,0.50.2,0.51.0,0.52.0,0.53.1,0.54.0,0.55.0,0.56.0,0.57.1,0.58.0,0.59.0}
-v {0.45.0,0.46.3,0.47.4,0.48.0,0.49.2,0.50.2,0.51.0,0.52.0,0.53.1,0.54.0,0.55.0,0.56.0,0.57.1,0.58.0,0.59.0,0.60.0}
What version of OPA to download: Default version: 0.59.0
-os {windows,macos,linux}
Operating system version of OPA to download. Default os: windows
--disablessl If there are proxy errors, try adding this switch to disable ssl verification
```
```
# example
python download_opa.py -v 0.53.0 -os macos
python download_opa.py -v 0.60.0 -os macos
```
1. If the above script can not execute for any reason or you would prefer to download OPA manually, go to the [Open Policy Agent website](https://www.openpolicyagent.org/docs/latest/#running-opa)
2. Check the website for a compatible OPA version (Currently v0.42.2 and above) for ScubaGoggles and select the corresponding version on top left of the website
2. Check the website for a compatible OPA version (Currently v0.45.0 and above) for ScubaGoggles and select the corresponding version on top left of the website
3. Navigate to the menu on left side of the screen: `Introduction -> Running OPA -> Download OPA`
4. Follow the instructions for downloading the respective OPA executable for your OS.

Expand Down
20 changes: 5 additions & 15 deletions download_opa.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,6 @@
import ssl

OPA_VERSION_SHA256_HASHES = {
'0.42.2': {
'windows': '2200de1f85e21a6566c9d2bd341af1d4dfc410baae0c2ec692a35135eef12bbb',
'macos': '03a14125ef038c8e8c71925316044f5d144c5cf6daa82724a1dae07258972459',
'linux': '2b59001ef6657281863e1719783f6204c16f0d8ec53de5854d2549451bdf1dc0'
},
'0.43.1': {
'windows': 'a9a859e24e79ff942792c7ae6aa71ac89d86159393dd486df9bfd954c27004ff',
'macos': '2c68fb04ae4908b1dd315c24ab282a1e46ca16cc83c52e7b6862bc06aa01b8b5',
'linux': 'daf578c643654c17e97da8a33d9b9c3cad56804d6eca5dc65a011fbefc7f7b67'
},
'0.44.0': {
'windows': 'e8179cf589e5dceb684fafcc3444506f776b8ba61e01da495c2a70410e3cdf3f',
'macos': 'b51b26865c0a99d021f173ca34172440485024d77d0fa69f0110365474d5841c',
'linux': '5ddb21d3fcfca130a47a42e730c05f055c68af6c1b37465879f6c59b10527eae'
},
'0.45.0': {
'windows': '31b12b954900584e8aa9103235adf192dd4c92e0039416eaec7d84e2f66fcf3e',
'macos': '1d76713a65c11771bd86fe44d8ace17d79f1660e5bb00219d4f3c9b0f966f6e5',
Expand Down Expand Up @@ -100,6 +85,11 @@
'windows': '0167f2bd69b72993ccdca222d0bc5d9278ffb194f9c87fddc1b55ecc9edf17df',
'macos': '3edddc7dded91a7b2fe7fbe3d862778dccc28eff6ee515c41b38d65474d5e9f4',
'linux': '5f615343a1cae1deb2f2f514b2f4b46456495fe1c828b17e779eb583aced0cc3'
},
'0.60.0': {
'windows': '8e20b4fcd6b8094be186d8c9ec5596477fb7cb689b340d285865cb716c3c8ea7',
'macos': '1b96cb23a63700b75f670e6bca1e3f8e9e7930c29b095753a9f978ce88828fa0',
'linux': '7d7cb45d9e6390646e603456503ca1232180604accc646de823e4d2c363dbeb0'
}
}

Expand Down

0 comments on commit 40afb0b

Please sign in to comment.