-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(cli): allow credential plugins to return null
for expiration
#32554
Conversation
According to the type definitions, the `expiration` field of V3 AWS credentials must be `undefined` or `Date`, but we are running into situations in reality where the value is `null`, leading to the error: ``` TypeError: Cannot read properties of null (reading 'getTime') ``` Survive that specific case.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #32554 +/- ##
=======================================
Coverage 78.85% 78.85%
=======================================
Files 108 108
Lines 7165 7165
Branches 1319 1319
=======================================
Hits 5650 5650
Misses 1330 1330
Partials 185 185
Flags with carried forward coverage won't be shown. Click here to find out more.
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Comments on closed issues and PRs are hard for our team to see. |
According to the type definitions, the
expiration
field of V3 AWS credentials must beundefined
orDate
, but we are running into situations in reality where the value isnull
, leading to the error:Survive that specific case.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license