Using Super-Linter

Super-Linter is a tool to run various linters (including Terrascan), typically as a Github Action although it can be used outside of github workflows as well. The link above provides details about how to enable it in your own projects, whether via a Github Action or not. Enabling Super-Linter is an easy way to automate validation of your code during the commit/pull request process.