We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f21bdfd commit 1c4c20dCopy full SHA for 1c4c20d
Modules/CippExtensions/Public/GitHub/Invoke-GitHubApiRequest.ps1
@@ -12,7 +12,12 @@ function Invoke-GitHubApiRequest {
12
)
13
14
$Table = Get-CIPPTable -TableName Extensionsconfig
15
- $Configuration = ((Get-CIPPAzDataTableEntity @Table).config | ConvertFrom-Json).GitHub
+ $ExtensionConfig = (Get-CIPPAzDataTableEntity @Table).config
16
+ if (Test-Json -Json $ExtensionConfig) {
17
+ $Configuration = ($ExtensionConfig | ConvertFrom-Json).GitHub
18
+ } else {
19
+ $Configuration = @{ Enabled = $false }
20
+ }
21
22
if ($Configuration.Enabled) {
23
$APIKey = Get-ExtensionAPIKey -Extension 'GitHub'
0 commit comments