ci: add docker security scan and lint workflow #2
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: Docker security scan | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| trivy-scan: | |
| name: Run Trivy filesystem scan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run Trivy Action | |
| uses: aquasecurity/trivy-action@0.32.0 | |
| with: | |
| format: 'table' | |
| scan-type: 'fs' | |
| severity: 'HIGH,CRITICAL' | |
| exit-code: '1' | |
| ignore-unfixed: true |