build(deps): bump the docker-tdx-qgs group in /build/tdx-qgs with 4 updates #81
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: Trivy security scan | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_call: | |
| permissions: | |
| contents: read | |
| jobs: | |
| trivy-scan-dockerfiles: | |
| name: Scan Dockerfiles | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Run Trivy SARIF scan (Dockerfiles) | |
| uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # 0.36.0 | |
| with: | |
| scan-type: config | |
| scan-ref: build/ | |
| exit-code: 0 | |
| trivyignores: .trivyignore.yaml | |
| format: sarif | |
| output: trivy-dockerfiles.sarif | |
| - name: Upload SARIF results | |
| if: always() | |
| uses: github/codeql-action/upload-sarif@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7 | |
| with: | |
| sarif_file: trivy-dockerfiles.sarif | |
| category: trivy-dockerfiles | |
| - name: Enforce Trivy policy (Dockerfiles) | |
| uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # 0.36.0 | |
| with: | |
| scan-type: config | |
| scan-ref: build/ | |
| exit-code: 1 | |
| severity: CRITICAL,HIGH | |
| trivyignores: .trivyignore.yaml | |
| trivy-scan-deployments: | |
| name: Scan Kubernetes manifests | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Run Trivy SARIF scan (Kubernetes manifests) | |
| uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # 0.36.0 | |
| with: | |
| scan-type: config | |
| scan-ref: bin/operator/ | |
| exit-code: 0 | |
| trivyignores: .trivyignore.yaml | |
| format: sarif | |
| output: trivy-deployments.sarif | |
| - name: Upload SARIF results | |
| if: always() | |
| uses: github/codeql-action/upload-sarif@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7 | |
| with: | |
| sarif_file: trivy-deployments.sarif | |
| category: trivy-deployments | |
| - name: Enforce Trivy policy (Kubernetes manifests) | |
| uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # 0.36.0 | |
| with: | |
| scan-type: config | |
| scan-ref: bin/operator/ | |
| exit-code: 1 | |
| severity: CRITICAL,HIGH | |
| trivyignores: .trivyignore.yaml | |