From 4712b8ce52c3f6d50a05203e600dbff852e2822c Mon Sep 17 00:00:00 2001 From: Yoel Horvitz Date: Fri, 26 Jul 2024 12:41:45 +0300 Subject: [PATCH] Update Test1.yml --- .github/workflows/Test1.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Test1.yml b/.github/workflows/Test1.yml index 193e30c..febf91d 100644 --- a/.github/workflows/Test1.yml +++ b/.github/workflows/Test1.yml @@ -37,10 +37,8 @@ jobs: AppSec: ${{ secrets.AppSec }} WebAppId: ${{ vars.WebAppId }} run: | - Write-Host "Web application ID 1: " ${{ env.WebAppId }} - Set-PSRepository PSGallery -InstallationPolicy Trusted - Install-Module Microsoft.Graph.Beta -Scope CurrentUser + Install-Module Microsoft.Graph -Scope CurrentUser Write-Host "Connect to Microsoft Entra ID with app ID and app secret" $SecuredPassword = ConvertTo-SecureString -String "$env:AppSec" -AsPlainText -Force @@ -50,7 +48,7 @@ jobs: Write-Host "Loading the PowerShell script .\ConditionalAccessPolicy.ps1" . .\ConditionalAccessPolicy.ps1 - Write-Host "Runnin the PowerShell script" + Write-Host "Running the PowerShell script" Add-ConditionalAccessPolicy -PolicyName "Woodgrove demo - sign in risk" -AppId ${{ env.WebAppId }} Write-Host "Disconnect from Microsoft Entra ID"