Fix sonarcloud finally #6
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: Tests trivy action | |
| on: | |
| push: | |
| branches: ["*"] | |
| paths: | |
| - trivy/** | |
| - .github/workflows/trivy.yml | |
| pull_request: | |
| branches: ["*"] | |
| paths: | |
| - trivy/** | |
| - .github/workflows/trivy.yml | |
| jobs: | |
| tests-trivy: | |
| runs-on: ubuntu-latest | |
| name: Test trivy | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Run Trivy vulnerability scanner | |
| uses: ./trivy | |
| with: | |
| images: ghcr.io/socialgouv/domifa/backend,ghcr.io/socialgouv/domifa/frontend | |
| output: trivy-results.json | |
| - shell: bash | |
| run: | | |
| python -m json.tool < trivy-results.json |