semgrep-action icon indicating copy to clipboard operation
semgrep-action copied to clipboard

Semgrep command failing with exit code 7 internal error

Open dhisaxen opened this issue 1 year ago • 1 comments

While executing the semgrep in Gitlab CLI I am getting the following error.

=== failed command's STDERR:
=== [ERROR] `./semgrep --skip-unknown-extensions --disable-nosem --json --autofix --dryrun --time --config /default-rules --enable-metrics --debug .gitlab-ci.yml README.md terraform/a.tf terraform/b.tf terraform/providers.tf terraform/variables.tf terraform/vars/dev-bkend.tfvars terraform/vars/dev.tfvars terraform/versions.tf` failed with exit code 7
This is an internal error, please file an issue at https://github.com/returntocorp/semgrep-action/issues/new/choose
and include any log output from above.

dhisaxen avatar Sep 29 '22 12:09 dhisaxen

Hi! An exit code of 7 https://semgrep.dev/docs/cli-reference/#:~:text=7%3A%20At%20least%20one%20rule%20in%20configuration%20is%20invalid. probably means one of the rules you are running has invalid syntax.

brendongo avatar Oct 12 '22 14:10 brendongo