Skip to content

Commit

Permalink
Bump OPA version from v0.61.0 to v0.63.0 (#1070)
Browse files Browse the repository at this point in the history
* Bump OPA version from v0.61.0 to  v0.63.0

* also add support for 0.62.1

* add omit comments

* add back in the space

* add back in the link

---------

Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: buidav <[email protected]>
  • Loading branch information
3 people committed Apr 16, 2024
1 parent 65f333c commit fced5af
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion PowerShell/ScubaGear/Modules/ScubaConfig/ScubaConfig.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ScubaConfig {
"Hybrid Identity Administrator",
"Application Administrator",
"Cloud Application Administrator")
DefaultOPAVersion = '0.61.0'
DefaultOPAVersion = '0.63.0'
}

static [object]ScubaDefault ([string]$Name){
Expand Down
3 changes: 2 additions & 1 deletion PowerShell/ScubaGear/Modules/Support/Support.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ function Install-OPA {
)

# Constants
$ACCEPTABLEVERSIONS = '0.59.0', '0.60.0', [ScubaConfig]::ScubaDefault('DefaultOPAVersion') # End Versions
$ACCEPTABLEVERSIONS = '0.59.0', '0.60.0', '0.61.0',
'0.62.1', [ScubaConfig]::ScubaDefault('DefaultOPAVersion') # End Versions
$FILENAME = @{ Windows = "opa_windows_amd64.exe"; MacOS = "opa_darwin_amd64"; Linux = "opa_linux_amd64_static"}

# Set prefernces for writing messages
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ If you receive a warning that _The required supporting PowerShell modules are no
Initialize-SCuBA # Installs the minimum required dependencies
```

> **IMPORTANT**: The `Install-OPA` cmdlet is called by default when running `Initialize-SCuBA`.
> **IMPORTANT**: The `Install-OPA` cmdlet is called by default when running `Initialize-SCuBA`.
The `Install-OPA` cmdlet 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.61.0) for ScubaGear and select the corresponding version on top left of the website.
1. Go to the [OPA download site](https://www.openpolicyagent.org/docs/latest/#running-opa).
2. Look for the latest OPA version (Currently v0.63.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 your desired location (default is ~\\.scubagear\Tools), open PowerShell, and use the following command to check the downloaded OPA version:

Expand All @@ -99,31 +99,31 @@ In the event of an unsuccessful download, users can manually download the OPA ex

### Examples

#### Example 1
#### Example 1 <!-- omit in toc -->

Run an assessment against all products (except PowerPlatform):

```powershell
Invoke-SCuBA
```

#### Example 2
#### Example 2 <!-- omit in toc -->

Run an assessment against Azure Active Directory with custom report output location:

```powershell
Invoke-SCuBA -ProductNames aad -OutPath C:\Users\johndoe\reports
```

#### Example 3
#### Example 3 <!-- omit in toc -->

Run assessments against multiple products:

```powershell
Invoke-SCuBA -ProductNames aad, sharepoint, teams
```

#### Example 4
#### Example 4 <!-- omit in toc -->

Run assessments non-interactively using an application service principal and authenticating via CertificateThumbprint:

Expand Down

0 comments on commit fced5af

Please sign in to comment.