diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9edae8d..f52bd08 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,13 +17,7 @@ jobs: with: script: | Install-Module ModuleBuilder -Force - Build-Module - - - name: Update Metadata - uses: natescherer/update-powershell-metadata-action@v2 - with: - path: .\Output\DuoSecurity - version: ${{ github.ref_name }} + Build-Module -SemVer ${{ github.ref_name }} - name: Publish PowerShell Module uses: pcgeek86/publish-powershell-module-action@v20 diff --git a/DuoSecurity/Public/Admin API/Integrations/Get-DuoIntegrations.ps1 b/DuoSecurity/Public/Admin API/Integrations/Get-DuoIntegrations.ps1 index 90945de..d9617a6 100644 --- a/DuoSecurity/Public/Admin API/Integrations/Get-DuoIntegrations.ps1 +++ b/DuoSecurity/Public/Admin API/Integrations/Get-DuoIntegrations.ps1 @@ -26,14 +26,15 @@ function Get-DuoIntegrations { ) if ($IntegrationKey) { - $Path = '/admin/v1/integrations/{0}' -f $IntegrationKey + $Path = '/admin/v2/integrations/{0}' -f $IntegrationKey } else { - $Path = '/admin/v1/integrations' + $Path = '/admin/v2/integrations' } $DuoRequest = @{ Method = 'GET' Path = $Path + SignatureVersion = 5 } $Response = Invoke-DuoRequest @DuoRequest