[WIP] feat: Add OpenTofu commands. #28
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 | |
| on: | |
| push: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| security-events: write | |
| jobs: | |
| trivy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Run Trivy vulnerability scanner | |
| # v0.36.0 | |
| uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 | |
| with: | |
| format: sarif | |
| output: trivy.sarif | |
| scan-ref: . | |
| scan-type: fs | |
| trivy-config: trivy.yaml | |
| - name: Parse SARIF file for annotations | |
| if: always() | |
| uses: jontyms/sarif-annotations@v0.0.3 | |
| with: | |
| annotation-level: notice | |
| sarif-file: trivy.sarif | |
| - name: Upload SARIF result | |
| if: always() | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: trivy.sarif |