Skip to content

Commit

Permalink
Update Test1.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelhor authored Jul 26, 2024
1 parent 2f227fb commit 4712b8c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/Test1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 4712b8c

Please sign in to comment.