Closed meme-lord closed 1 week ago
Hi @meme-lord,
Thanks for reporting this!
Indeed - some files from the repositories used as sources contain YAML file which are not valid Semgrep rules (for example, elttam/.pre-commit-config.yaml
, which is a pre-commit action).
I already implemented an ignore mechanism in the YAML file with all sources, sources.yaml
:
The fix here will be to migrate all folders and files names that you used in your rm
commands into the corresponding ignored
sections of the sources.yaml
file. Would you like to contribute to this repository by doing the highlighted modification in a PR?
I'm not sure if I'm doing something wrong but if I do
And then go to scan a project
I will inevitably get a bunch of errors about yaml files in the repos that are not rules. Is there a flag I need to use or do people just manually delete these non rule files?
What I did to get past the non rule yaml files was to delete them but this doesn't feel like a very clean solution.