diff --git a/.github/workflows/core-build-test-images.yml b/.github/workflows/core-build-test-images.yml index f580365..fa4d69f 100644 --- a/.github/workflows/core-build-test-images.yml +++ b/.github/workflows/core-build-test-images.yml @@ -200,19 +200,21 @@ jobs: summary.write("\n") PY - - name: Upload Trivy results to code scanning on main + - name: Upload v16 amd64 build results to code scanning on main if: >- ${{ always() && + inputs.version == '16' && + matrix.arch == 'amd64' && github.ref == 'refs/heads/main' && - (github.event_name == 'push' || github.event_name == 'schedule') && - hashFiles('trivy-results/*.sarif') != '' + github.event_name == 'push' && + hashFiles('trivy-results/build.sarif') != '' }} continue-on-error: true uses: github/codeql-action/upload-sarif@v4 with: - sarif_file: trivy-results - category: trivy-${{ inputs.version }}-${{ matrix.arch }} + sarif_file: trivy-results/build.sarif + category: trivy-v16-amd64-build - name: Setup Python uses: actions/setup-python@v7 diff --git a/docs/08-reference/08-container-validation.md b/docs/08-reference/08-container-validation.md index 20cb558..8f42ceb 100644 --- a/docs/08-reference/08-container-validation.md +++ b/docs/08-reference/08-container-validation.md @@ -77,7 +77,9 @@ During the initial rollout, Trivy is report-only: - SARIF reports are retained as workflow artifacts for 30 days - pull requests show a capped findings list in the workflow summary and retain the complete SARIF reports as artifacts -- results are uploaded to GitHub Code Scanning only on pushes to `main` +- only the version 16 AMD64 `build` image report is uploaded to GitHub Code + Scanning, and only on pushes to `main`; complete reports for every image and + architecture remain available as workflow artifacts This provides visibility before deciding which vulnerability classes should become blocking.