-
Notifications
You must be signed in to change notification settings - Fork 7
Display "N/A" for tokens without expiration metadata #539
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
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7a5c139
Initial plan
Copilot 85fd3af
Modify types and format to display Unknown for PAT tokens
Copilot 55834ee
Add tests for TokenExpiresIn behavior for PAT and IAT tokens
Copilot 41e27c8
Fix test to handle GITHUB_TOKEN without expiration
Copilot 5aabf79
Add comprehensive test coverage for all token types
Copilot ece5961
Clarify comment about GITHUB_TOKEN being IAT in GitHub Actions
Copilot 219edec
Remove unnecessary comments from tests
Copilot e22f84a
Fix test by resetting to App context before Connect-GitHubApp call
Copilot 075b804
Remove unused variable from test
Copilot 8d14441
Remove comment from test
Copilot 80b3847
Simplify context reset by removing unnecessary PassThru
Copilot f9fcda4
Remove redundant Connect-GitHubAccount calls and use Get-GitHubContext
Copilot acb07c8
Fix test by passing App context explicitly to Connect-GitHubApp
Copilot 860d4f5
Refactor Connect-GitHubAccount and Connect-GitHubApp tests to validat…
MariusStorhaug b76a5f1
Enhance tests for TokenExpiresAt and TokenExpiresIn properties in Con…
MariusStorhaug bddf285
Add BeforeAll block to initialize GitHub account context in Auth tests
MariusStorhaug 6a58e0e
Remove redundant context assignment in Connect-GitHubAccount test
MariusStorhaug afd3bb3
Refactor TokenExpiresIn handling to return 'Unknown' when TokenExpire…
MariusStorhaug 26b9724
Refactor GitHubContext types to include TokenExpiresIn and RefreshTok…
MariusStorhaug d3fceef
Update TokenExpiresAt comparison to use DateTime.Now for accurate tim…
MariusStorhaug File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.