bump: version 2.0.0 → 2.1.0 (#12) #30
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: | |
| pull_request: | |
| branches: | |
| - main | |
| 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/trivy-action@0.33.1 | |
| with: | |
| format: sarif | |
| output: trivy-results.sarif | |
| scan-type: config | |
| 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-results.sarif | |
| - name: Upload SARIF result | |
| if: always() | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: trivy-results.sarif |