-
Notifications
You must be signed in to change notification settings - Fork 950
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
TERRAFORM_TERRASCAN_CONFIG_FILE doesn't work #5762
Comments
Hi! Can you post your super-linter configuration?
I don't think so. The |
I added parameter as explained here. Maybe I missed something, but I see that this parameter is only used here: Line 245 in 5b5d2f7
And TERRAFORM_TERRASCAN_FILE_NAME is never used in any other part of the code. |
This is the issue. As you can see from the README, the definition of that variable is (I added emphasis):
All those variables to set configuration file names are, in fact, for just the file name, not the path, and are relative to
It is 😄. You don't find that specific string because Super-linter dynamically builds variables. See https://github.com/super-linter/super-linter/blob/main/lib/functions/linterRules.sh if you're interested about the implementation details. To fix your issue, I would unset |
@ferrarimarco Thanks for your help! |
Is there an existing issue for this?
Are you using the latest Super-linter version available?
I am using the latest Super-linter version.
I can reproduce the issue running Super-linter using complete version identifier (example: vX.Y.Z), and not just with a partial one (example: vX)
I am using the super-linter/super-linter action or container image, and not the deprecated github/super-linter action or container image.
Are you resonably sure that it's a Super-linter issue, and not an issue related to a tool that Super-linter runs?
Current Behavior
If you set TERRAFORM_TERRASCAN_CONFIG_FILE to some **/*.toml path, it doesn't work.
Expected Behavior
It should work without issues and take rules from TERRAFORM_TERRASCAN_CONFIG_FILE.
Super-Linter version
Relevant log output
Steps To Reproduce
Anything else?
Most likely, you have old or legacy TERRAFORM_TERRASCAN_LINTER_RULES parameter, which should be replaced by TERRAFORM_TERRASCAN_CONFIG_FILE.
super-linter/lib/functions/linterCommands.sh
Line 127 in 5b5d2f7
The text was updated successfully, but these errors were encountered: