Skip to content

Commit 1e8d9ba

Browse files
🩹 [Patch]: Updated the org level login test with quotes (#52)
## Description This pull request updates the `TestWorkflow.yml` file to test quoted inputs for GitHub App secrets and adjusts the job name to reflect this change. Workflow updates: * [`.github/workflows/TestWorkflow.yml`](diffhunk://#diff-242a265d6d6bfff6094c9285345022d0e6d7ddde58504dfc80249fafbd89ba2cL472-R472): Updated the `name` field of the `ActionTestWithGitHubAppOrg` job to include "quoted inputs" for clarity. * [`.github/workflows/TestWorkflow.yml`](diffhunk://#diff-242a265d6d6bfff6094c9285345022d0e6d7ddde58504dfc80249fafbd89ba2cL482-R483): Modified the `ClientID` and `PrivateKey` inputs in the `Action-Test` step to use quoted syntax for testing purposes.
1 parent b5ebe75 commit 1e8d9ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/TestWorkflow.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ jobs:
469469
}
470470
471471
ActionTestWithGitHubAppOrg:
472-
name: GitHubAppOrg
472+
name: GitHubAppOrg + quoted inputs
473473
runs-on: ${{ inputs.runs-on }}
474474
steps:
475475
# Need to check out as part of the test, as its a local action
@@ -479,8 +479,8 @@ jobs:
479479
- name: Action-Test
480480
uses: ./
481481
with:
482-
ClientID: ${{ secrets.TEST_APP_ORG_CLIENT_ID }}
483-
PrivateKey: ${{ secrets.TEST_APP_ORG_PRIVATE_KEY }}
482+
ClientID: '${{ secrets.TEST_APP_ORG_CLIENT_ID }}' # Test with quotes on input
483+
PrivateKey: '${{ secrets.TEST_APP_ORG_PRIVATE_KEY }}' # Test with quotes on input
484484
Prerelease: ${{ inputs.Prerelease }}
485485
Script: |
486486
LogGroup 'Get-GitHubApp' {
@@ -524,14 +524,14 @@ jobs:
524524
try {
525525
# Import GitHub module to check contexts
526526
Import-Module -Name GitHub -ErrorAction SilentlyContinue
527-
527+
528528
# Check if Get-GitHubContext command is available
529529
if (Get-Command Get-GitHubContext -ErrorAction SilentlyContinue) {
530530
# Get available contexts
531531
$contexts = Get-GitHubContext -ListAvailable
532-
532+
533533
Write-Host "Available GitHub contexts: $($contexts | ConvertTo-Json -Depth 3)"
534-
534+
535535
# Verify that no contexts are available (should be null or empty)
536536
if ($null -eq $contexts -or $contexts.Count -eq 0) {
537537
Write-Host "✅ SUCCESS: No GitHub contexts found after cleanup"

0 commit comments

Comments
 (0)