You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Certificate-validation rule fails C# parsing in codacy-opengrep 0.0.29 #44
Certificate-validation rule fails C# parsing in codacy-opengrep 0.0.29
The bundled csharp_crypto_rule-CertificateValidationDisabled rule fails to parse its lambda-expression alternative under the published 0.0.29 image. The scan exits 2 before returning findings. Cloud analysis also reports a failed/partial Opengrep step and retains earlier findings; its generic error does not identify the exact rule, so the local rule failure below is the independently reproduced defect.
Extract the unchanged rule from /docs/rules.yaml into a standalone rule configuration and run the image's /usr/local/bin/opengrep scan --config before.json --strict --json Probe.cs.
Actual: exit 2, Rule parse error / Invalid pattern for C# / Stdlib.Parsing.Parse_error, pointing to the (...) => true; alternative.
Changing only that expression pattern to remove its trailing semicolon yields exit 0 with no scanner errors. It reports exactly one finding, on the always-true callback at line 4, and does not flag the false callback at line 7.
The rule remains enabled, with its other alternatives and security behavior preserved. No exclusions, ignored issues, disabled rules or changed severity are used. Please correct the bundled pattern or its parser compatibility and republish the engine so cloud analysis can complete successfully.
Activity
DMarinhoCodacy commentedon Nov 12, 2026
Hello @doradsoft ,
Thanks for creating the issue. We're aware of this problem and working on it.
Kind regards,
David
DMarinhoCodacy commentedon Nov 13, 2026
Hello @doradsoft
I've made some improvements, and things have got better. Can you verify?
And thanks again for your message.
Kind regards,
David