Skip to content

🩹 [Patch]: Updated the org level login test with quotes #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/TestWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ jobs:
}

ActionTestWithGitHubAppOrg:
name: GitHubAppOrg
name: GitHubAppOrg + quoted inputs
runs-on: ${{ inputs.runs-on }}
steps:
# Need to check out as part of the test, as its a local action
Expand All @@ -479,8 +479,8 @@ jobs:
- name: Action-Test
uses: ./
with:
ClientID: ${{ secrets.TEST_APP_ORG_CLIENT_ID }}
PrivateKey: ${{ secrets.TEST_APP_ORG_PRIVATE_KEY }}
ClientID: '${{ secrets.TEST_APP_ORG_CLIENT_ID }}' # Test with quotes on input
PrivateKey: '${{ secrets.TEST_APP_ORG_PRIVATE_KEY }}' # Test with quotes on input
Prerelease: ${{ inputs.Prerelease }}
Script: |
LogGroup 'Get-GitHubApp' {
Expand Down Expand Up @@ -524,14 +524,14 @@ jobs:
try {
# Import GitHub module to check contexts
Import-Module -Name GitHub -ErrorAction SilentlyContinue

# Check if Get-GitHubContext command is available
if (Get-Command Get-GitHubContext -ErrorAction SilentlyContinue) {
# Get available contexts
$contexts = Get-GitHubContext -ListAvailable

Write-Host "Available GitHub contexts: $($contexts | ConvertTo-Json -Depth 3)"

# Verify that no contexts are available (should be null or empty)
if ($null -eq $contexts -or $contexts.Count -eq 0) {
Write-Host "✅ SUCCESS: No GitHub contexts found after cleanup"
Expand Down
Loading