Trivy Security Scan #16
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 Security Scan | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" # Runs every midnight | |
| pull_request: | |
| paths: | |
| - .github/workflows/security-scan.yaml | |
| - .github/workflows/trivy.yaml | |
| permissions: | |
| contents: read | |
| actions: read | |
| jobs: | |
| Trivy: | |
| permissions: | |
| contents: read # for actions/checkout to fetch code | |
| security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
| strategy: | |
| matrix: | |
| include: | |
| # Latest branches | |
| - { branch: main, channel: latest/edge } | |
| # Stable branches | |
| # Add branches to test here | |
| # TODO: automatically retrieve the list of channels. | |
| - { branch: release-1.32, channel: 1.32-classic/edge } | |
| - { branch: release-1.33, channel: 1.33-classic/edge } | |
| - { branch: release-1.34, channel: 1.34-classic/edge } | |
| uses: ./.github/workflows/security-scan.yaml | |
| with: | |
| channel: ${{ matrix.channel }} | |
| checkout-ref: ${{ matrix.branch }} | |
| upload-reports-to-jira: true | |
| secrets: inherit | |