scheduled-scan #1412
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: scheduled-scan | |
| on: | |
| schedule: | |
| - cron: "0 5 * * *" | |
| workflow_dispatch: {} | |
| jobs: | |
| scan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Run Grype filesystem vulnerability scanner | |
| id: scan | |
| uses: ./.github/actions/scan-filesystem | |
| with: | |
| path: '.' | |
| fail-build: 'true' | |
| severity-cutoff: 'medium' | |
| output-file: 'grype-filesystem-results.sarif' | |
| only-fixed: 'true' | |
| retention-days: '90' | |
| category-prefix: 'filesystem-scan-' | |
| scan-image: | |
| name: Scan image for vulnerabilities | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| actions: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Build image | |
| run: make docker-image DOCKER_IMAGE=ekco:nightly | |
| - name: Run Grype image vulnerability scanner | |
| uses: ./.github/actions/scan-image | |
| with: | |
| category-prefix: 'image-scan' | |
| image-ref: 'ekco:nightly' | |
| only-fixed: 'true' | |
| output-file: 'ekco-image-results.sarif' | |
| retention-days: '90' | |
| severity-cutoff: 'medium' | |
| upload-sarif: 'true' |