Skip to content

Commit

Permalink
feat(general): allow --var-file to be passed as environment variable (
Browse files Browse the repository at this point in the history
#5406)

feat(ext_argument_parser): allow `--var-file` to be passed as environment variable

allow for terraform var file to be sourced via environment variable `CKV_VAR_FILE`.

Refs #5240
  • Loading branch information
kwame-mintah committed Aug 2, 2023
1 parent c37523c commit 71e1bcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions checkov/common/util/ext_argument_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ def add_parser_args(self) -> None:
"https://www.terraform.io/docs/language/values/variables.html#variable-definitions-tfvars-files)."
"Currently only supported for source Terraform (.tf file), and Helm chart scans."
"Requires using --directory, not --file.",
env_var="CKV_VAR_FILE",
)
self.add(
"--external-modules-download-path",
Expand Down

0 comments on commit 71e1bcc

Please sign in to comment.