feat: add ECR enhanced scanning and fix S3 logging configuration #380
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: Terraform Security Scan | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: read-all | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| trivy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd | |
| - name: Run Trivy vulnerability scanner | |
| uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0 | |
| with: | |
| scan-type: 'fs' | |
| scan-ref: . | |
| scanners: 'vuln,secret,misconfig' | |
| skip-dirs: '.cache' | |
| ignore-unfixed: false | |
| exit-code: '1' | |
| format: 'table' | |
| severity: 'CRITICAL,HIGH' |