testing #11
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: Security scan | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| schedule: | |
| - cron: '0 6 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| trivy-repo: | |
| name: Scan repository (SAST/Deps) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run Trivy filesystem scan | |
| uses: aquasecurity/trivy-action@0.28.0 | |
| with: | |
| scan-type: 'fs' | |
| ignore-unfixed: true | |
| format: 'sarif' | |
| output: 'trivy-repo.sarif' | |
| severity: 'CRITICAL,HIGH' | |
| - name: Upload SARIF | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: trivy-repo.sarif | |
| trivy-image-main: | |
| name: Scan main Dockerfile image | |
| runs-on: ubuntu-latest | |
| needs: trivy-repo | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build local image | |
| run: | | |
| docker build -f Dockerfile -t local/qd-data-processing:scan . | |
| - name: Scan Docker image | |
| uses: aquasecurity/trivy-action@0.28.0 | |
| with: | |
| image-ref: 'local/qd-data-processing:scan' | |
| format: 'table' | |
| ignore-unfixed: true | |
| severity: 'CRITICAL,HIGH' | |
| trivy-image-tika: | |
| name: Scan Apache Tika Dockerfile image | |
| runs-on: ubuntu-latest | |
| needs: trivy-repo | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build local Apache Tika image | |
| run: | | |
| docker build -f Dockerfile_apache_tika -t local/qd-apache-tika:scan . | |
| - name: Scan Apache Tika Docker image | |
| uses: aquasecurity/trivy-action@0.28.0 | |
| with: | |
| image-ref: 'local/qd-apache-tika:scan' | |
| format: 'table' | |
| ignore-unfixed: true | |
| severity: 'CRITICAL,HIGH' |