DS-943 Fixing high severity sonarcloud reported vulnerabilities (#1144) #6096
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Check code for Security Vulnerabilities" | |
| on: | |
| push: | |
| branches: [develop, master] | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-code-security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check if code contains any Terraform Security Vulnerabilities | |
| run: make terraform-security | |
| - name: Checkov Security and Best Practices - Docker | |
| run: make -s docker-best-practices | |
| - name: Checkov Security and Best Practices - Terraform | |
| run: make -s terraform-best-practices | |
| - name: Checkov Security and Best Practices - Github Actions | |
| run: make -s github-actions-best-practices |