-
Notifications
You must be signed in to change notification settings - Fork 350
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
Unable to apply Custom Rule against Yaml File #585
Comments
Seeming same issue with any non-code file ( Copied the default rules in case my syntax was incorrect, no luck. |
It looks like the tag needed to have Feel free to close if that's expected. |
This is the currently the intended behavior, you need the -A/--allow-all-tags-in-build-files argument to the cli to match non 'metadata' tags in 'build' files like yml. https://github.com/microsoft/ApplicationInspector/wiki/1.-CLI-Usage For writing rules to match structured data files I can also recommend using the respective Path based queries for much higher fidelity than regex. Let me know if that helps. Would be interested in any other feedback as well on rule authoring. |
Describe the bug
Applying a custom rule against a YAML file, results in no matches, however, it should be matching correctly.
File in repository:
Expected behavior
Rule is matched.
Screenshots
If applicable, add screenshots to help explain your problem.
demos/xd-trading-app » cat test.json | grep Internet -A 10
demos/xd-trading-app » cat test.json | grep Internet -A 10
Additional context
I was able to match the same value in a code file
.go
. But not with the yaml extension.The text was updated successfully, but these errors were encountered: