We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
be-any-of
be-any-of constraint in HCL does not recognize the strings properly.
target code
resource "google_container_cluster" "bad_example" { logging_service = "none" }
rule
version: '1' rules: - id: 'example' title: example language: hcl patterns: - pattern: | resource "google_container_cluster" :[NAME] { example_service = :[SETTINGS] } constraints: - target: SETTINGS should: be-any-of strings: - "none" - "example.com" rewrite: | resource "google_container_cluster" :[NAME] { example_service = "example-service" }
The pattern should match but it does not.
N/A
The text was updated successfully, but these errors were encountered:
It works well by writing as follows:
strings: - '"none"' - '"example.com"'
Sorry, something went wrong.
No branches or pull requests
Description of the bug
be-any-of
constraint in HCL does not recognize the strings properly.Steps to Reproduce
target code
rule
Expected Behaviour
The pattern should match but it does not.
Additional Materials
N/A
The text was updated successfully, but these errors were encountered: