-
Notifications
You must be signed in to change notification settings - Fork 38
feat(toolkit-lib): deploy prompt prints security diff and returns template diff #437
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
Conversation
const deployMotivation = '"--require-approval" is enabled and stack includes security-sensitive updates.'; | ||
const deployQuestion = `${deployMotivation}\nDo you wish to deploy these changes`; | ||
const deployQuestion = `${securityDiff.formattedDiff}\n\n${deployMotivation}\nDo you wish to deploy these changes`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't have a good way of testing this because formatted diff has a bunch of bold/underlined/colored words so it's hard to unit test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run stripAnsi
over it
Signed-off-by: github-actions <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #437 +/- ##
=======================================
Coverage 79.18% 79.18%
=======================================
Files 54 54
Lines 6912 6912
Branches 772 772
=======================================
Hits 5473 5473
Misses 1421 1421
Partials 18 18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Approved but leaving @kaizencc opportunity to improve test. |
Signed-off-by: github-actions <[email protected]>
closes aws/aws-cdk#33435
Does the following:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license