@@ -568,7 +568,56 @@ jobs:
568
568
uses : ./
569
569
with :
570
570
ClientID : ${{ secrets.TEST_APP_ORG_CLIENT_ID }}
571
- KeyVaultKeyReference : ${{ secrets.KEYVAULT_KEY_REFERENCE }}
571
+ KeyVaultKeyReference : ' https://psmodule-test-vault.vault.azure.net/keys/psmodule-org-app/569ae34250e64adca6a2b2d159d454a5'
572
+ Prerelease : ${{ inputs.Prerelease }}
573
+ Script : |
574
+ LogGroup 'Context details' {
575
+ Get-GitHubContext | Select-Object * | Out-String
576
+ }
577
+
578
+ LogGroup 'Get-GitHubApp' {
579
+ Get-GitHubApp | Format-List | Out-String
580
+ }
581
+
582
+ LogGroup 'Get-GitHubAppInstallation' {
583
+ Get-GitHubAppInstallation | Format-Table -AutoSize | Out-String
584
+ }
585
+
586
+ LogGroup 'Connect to all installations of the app' {
587
+ Connect-GitHubApp
588
+ }
589
+
590
+ LogGroup 'Contexts' {
591
+ Get-GitHubContext -ListAvailable | Format-Table -AutoSize | Out-String
592
+ }
593
+
594
+ LogGroup 'GitHubConfig' {
595
+ Get-GitHubConfig | Format-List | Out-String
596
+ }
597
+
598
+ ActionTestWithKeyVaultKeyReferenceLatest :
599
+ name : WithKeyVaultKeyReferenceLatest
600
+ environment : azure
601
+ runs-on : ${{ inputs.runs-on }}
602
+ steps :
603
+ # Need to check out as part of the test, as its a local action
604
+ - name : Checkout repo
605
+ uses : actions/checkout@v4
606
+
607
+ # Login to Azure to enable KeyVault access
608
+ - name : Login to Azure
609
+ uses : azure/login@v2
610
+ with :
611
+ client-id : ${{ vars.AZURE_CLIENT_ID }}
612
+ tenant-id : ${{ vars.AZURE_TENANT_ID }}
613
+ subscription-id : ${{ vars.AZURE_SUBSCRIPTION_ID }}
614
+ allow-no-subscriptions : true
615
+
616
+ - name : Action-Test
617
+ uses : ./
618
+ with :
619
+ ClientID : ${{ secrets.TEST_APP_ORG_CLIENT_ID }}
620
+ KeyVaultKeyReference : ' https://psmodule-test-vault.vault.azure.net/keys/psmodule-org-app/'
572
621
Prerelease : ${{ inputs.Prerelease }}
573
622
Script : |
574
623
LogGroup 'Context details' {
0 commit comments