fix: Key policy template syntax. #7
Workflow file for this run
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: Trivy Analysis | |
| on: | |
| push: | |
| permissions: | |
| contents: read | |
| security-events: write | |
| jobs: | |
| trivy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v6 | |
| - name: Run Trivy vulnerability scanner | |
| uses: aquasecurity/[email protected] | |
| with: | |
| scan-type: config | |
| ignore-unfixed: true | |
| skip-dirs: "**/*/.terraform" | |
| exit-code: 1 | |
| format: sarif | |
| output: trivy-results.sarif | |
| - name: Parse SARIF file for annotations | |
| if: always() | |
| uses: jontyms/[email protected] | |
| with: | |
| annotation-level: notice | |
| sarif-file: trivy-results.sarif | |
| # When run on main, upload the SARIF file to GitHub. | |
| - name: Upload SARIF result | |
| if: always() && github.ref == 'refs/heads/main' | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: trivy-results.sarif |