-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(misconf): Add support for --cf-params
for CFT
#5507
Conversation
Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
--cf-params
for CFT
71b4acb
to
cb21634
Compare
@knqyf263 could you take a look at reviewing it? |
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 great! I left small comments.
pkg/flag/misconf_flags.go
Outdated
@@ -55,6 +55,12 @@ var ( | |||
Default: []string{}, | |||
Usage: "specify paths to override the Terraform tfvars files", | |||
} | |||
CfParamsFlag = Flag{ | |||
Name: "cf-params", | |||
ConfigName: "misconfiguration.cloudformation.vars", |
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.
nit: cloudformation.vars
is a bit different from the CLI flag. Is it intended? cloudformation.params
seems more aligned.
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.
LGTM, but I'd defer to @nikpivkin. He recently spent more time on misconfiguration scanning than me.
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.
LGTM
Description
Adds the support to pass in Cloudformation template files via
--cf-params
flag, similar to-tf-vars
Related issues
Required stacked PRs for release (this PR will be merged into the following PR)
Checklist