Add DevSecOps Demo 08 page with latest GHAS features and updates; upd… #177
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
| # https://github.com/aquasecurity/tfsec | |
| # https://github.com/aquasecurity/tfsec-sarif-action | |
| name: IaC Scanning (Terraform) with Aqua Security tfsec | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: '15 03 * * 5' | |
| permissions: | |
| contents: read # for actions/checkout to fetch code | |
| security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
| actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
| jobs: | |
| tfsec-scan: | |
| name: Run tfsec sarif report | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Run tfsec | |
| uses: aquasecurity/tfsec-sarif-action@v0.1.4 | |
| with: | |
| sarif_file: tfsec.sarif | |
| - name: Upload SARIF file to GitHub Security tab | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: tfsec.sarif |