Skip to content

Commit

Permalink
test connect exchange online
Browse files Browse the repository at this point in the history
Signed-off-by: Sujay Kandwal <[email protected]>
  • Loading branch information
skandwal-mitre committed Dec 24, 2024
1 parent a171605 commit ab36cc0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test_profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,27 @@ jobs:
else
echo "pwsh not found in PATH"
fi
- name: Install Exchange Online Management Module
shell: pwsh
run: |
Install-Module -Name ExchangeOnlineManagement -Force -Scope CurrentUser
Import-Module ExchangeOnlineManagement
- name: Connect to Exchange Online
shell: pwsh
run: |
$CertificatePath = "cert.pfx"
$CertificatePassword = "${{secrets.SAF_M365_CERTIFICATE_PASSWORD}}"
$ClientId = "${{secrets.SAF_M365_CLIENT_ID}}"
$Organization = "${{secrets.SAF_M365_ORGANIZATION}}"
$SecurePassword = ConvertTo-SecureString -String $CertificatePassword -AsPlainText -Force
Connect-ExchangeOnline -CertificateFilePath $CertificatePath `
-CertificatePassword $SecurePassword `
-AppID $ClientId `
-Organization $Organization `
- name: Create config json file
run: |
Expand Down

0 comments on commit ab36cc0

Please sign in to comment.