Repository navigation
fix EDR instances defaults returning rather than raising NotImplement… #43
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: Check vulnerabilities | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - '!**.md' | |
| release: | |
| types: | |
| - released | |
| schedule: | |
| - cron: '0 8 * * *' # runs daily at 8h UTC | |
| jobs: | |
| vulnerabilities: | |
| runs-on: ubuntu-24.04 | |
| defaults: | |
| run: | |
| working-directory: . | |
| steps: | |
| - name: Checkout pygeoapi | |
| uses: actions/checkout@master | |
| - name: Scan vulnerabilities with trivy | |
| uses: aquasecurity/trivy-action@v0.36.0 | |
| with: | |
| scan-type: fs | |
| exit-code: 1 | |
| ignore-unfixed: true | |
| severity: CRITICAL,HIGH | |
| scanners: vuln,misconfig,secret | |
| scan-ref: . | |
| - name: Set lowercase image name | |
| run: | | |
| echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >> "$GITHUB_ENV" | |
| - name: Build locally the image from Dockerfile | |
| run: | | |
| docker buildx build -t ${{ env.IMAGE_NAME }}:${{ github.sha }} --platform linux/amd64 --no-cache -f Dockerfile . | |
| - name: Scan locally built Docker image for vulnerabilities with trivy | |
| uses: aquasecurity/trivy-action@v0.36.0 | |
| env: | |
| TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db:2 | |
| TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db:1 | |
| with: | |
| scan-type: image | |
| exit-code: 1 | |
| ignore-unfixed: true | |
| severity: CRITICAL,HIGH | |
| vuln-type: os,library | |
| image-ref: '${{ env.IMAGE_NAME }}:${{ github.sha }}' |