-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Add support for ECR GetLogin rule and manual-review rules #9948
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
Add support for ECR GetLogin rule and manual-review rules #9948
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## upgrade-linting-tool #9948 +/- ##
=====================================================
Coverage 93.33% 93.33%
=====================================================
Files 209 209
Lines 16807 16807
=====================================================
Hits 15687 15687
Misses 1120 1120 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Question for reviewer @hssyoo Current state: We planned to merge the linter to the What are our thoughts on instead merge the linter to its own separate |
Separate branch sounds good to me. Feel free to run with the option you think makes sense. |
hssyoo
left a comment
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.
Looks good, just need to refine the ECR rule. Another bug that was missed in the last PR is that the hidden alias rule appends the alternative the command rather than replacing the hidden alias. eg:
-aws lightsail import-key-pair --key-pair-name mykey --public-key-base-64 c3NoLXJzYQ==
+aws lightsail import-key-pair --key-pair-name mykey --public-key-base-64 c3NoLXJzYQ== --public-key-base64
Description of changes:
ecr get-logincommands. If found, flags them as needing manual review.aws --debug s3 cp s3://$SRC_BUCKET s3://$DEST_BUCKET. This would have been missed previously due to the--debugflag before the service subcommand, and the use of concatenation with the words3://and variable$SRC_BUCKET.display_findingto make better use ofdifflib. Removes unneeded code.Description of tests:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.