diff --git a/.github/workflows/run_opa_tests.yaml b/.github/workflows/run_opa_tests.yaml index 135e4e207b..3b3dfb799d 100644 --- a/.github/workflows/run_opa_tests.yaml +++ b/.github/workflows/run_opa_tests.yaml @@ -26,7 +26,7 @@ jobs: - name: Setup OPA uses: open-policy-agent/setup-opa@v2 with: - version: <0.50 + version: latest - name: Run OPA Check run: opa check Rego Testing/Unit/Rego --strict diff --git a/OPA.ps1 b/OPA.ps1 index f4b03333d8..e527554b11 100644 --- a/OPA.ps1 +++ b/OPA.ps1 @@ -13,7 +13,7 @@ param( [Parameter(Mandatory = $false, HelpMessage = 'The version of OPA Rego to be downloaded, must be in "x.x.x" format')] [Alias('version')] [string] - $ExpectedVersion = '0.42.1', + $ExpectedVersion = '0.59.0', [Parameter(Mandatory = $false, HelpMessage = 'The file name that the opa executable is to be saved as')] [Alias('name')] diff --git a/README.md b/README.md index fbde3b7558..8bbb842fb1 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ Then run: > The `OPA.ps1` executable download script is called by default when running `SetUp.ps1`. `OPA.ps1` can also be run by itself to download the executable. In the event of an unsuccessful download, users can manually download the OPA executable with the following steps: 1. Go to OPA download site (https://www.openpolicyagent.org/docs/latest/#running-opa) -2. Check the acceptable OPA version (Currently v0.42.1) for ScubaGear and select the corresponding version on top left of the website +2. Check the acceptable OPA version (Currently v0.59.0) for ScubaGear 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. Locate the downloaded file, add the file to the root directory of this repository, open PowerShell, and use the following command to check the downloaded OPA version ```powershell diff --git a/SetUp.ps1 b/SetUp.ps1 index ea0e15360b..aba72c6d6d 100644 --- a/SetUp.ps1 +++ b/SetUp.ps1 @@ -36,7 +36,7 @@ param( [Parameter(Mandatory = $false, HelpMessage = 'The version of OPA Rego to be downloaded, must be in "x.x.x" format')] [Alias('version')] [string] - $ExpectedVersion = '0.42.1', + $ExpectedVersion = '0.59.0', [Parameter(Mandatory = $false, HelpMessage = 'The operating system the program is running on')] [ValidateSet('Windows','MacOS','Linux')]