Looks like the kubescape --version flag was replaced with kubescape version in recent releases.
The action failed with kubescape version 2.3.4 with the following:
+ kubescape --version
Error: unknown flag: --version
Pinning the kubescape version to the one shown in the doc - v2.0.155 - fixes the issue.