Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert run OPA tests action from <0.50 to latest #745

Merged
merged 4 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/run_opa_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion OPA.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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')]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion SetUp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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')]
Expand Down