Skip to content
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 quote to arm-ttk linter command #1889

Merged
merged 1 commit into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-linter.yml file, or with `oxsecurity/megalinter:beta` docker image

- Add quotes to arm-ttk linter command ([#1879](https://github.com/oxsecurity/megalinter/issues/1879))

- Linter versions upgrades
- [cfn-lint](https://github.com/aws-cloudformation/cfn-lint) from 0.65.0 to **0.65.1** on 2022-09-20
- [checkov](https://www.checkov.io/) from 2.1.213 to **2.1.214** on 2022-09-20
Expand Down
4 changes: 2 additions & 2 deletions megalinter/linters/ArmLinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def build_lint_command(self, file=None):
'${config} = $(Import-PowerShellDataFile -Path "'
+ self.config_file
+ '") ;',
"Test-AzTemplate @config -TemplatePath " + file + " ;",
f"Test-AzTemplate @config -TemplatePath '{file}' ;",
]
else:
pwsh_script += ["Test-AzTemplate -TemplatePath " + file + " ;"]
pwsh_script += [f"Test-AzTemplate -TemplatePath '{file}' ;"]
pwsh_script += ["if (${Error}.Count) {exit 1}"]
cmd = [
("powershell" if sys.platform == "win32" else "pwsh"),
Expand Down