Skip to content

Commit

Permalink
Merge pull request #37 from JohnDuprey/main
Browse files Browse the repository at this point in the history
Main to dev
  • Loading branch information
JohnDuprey authored May 8, 2024
2 parents 04854ec + 2e84e49 commit e60dcc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e60dcc1

Please sign in to comment.