Skip to content

Fix build-scan-sign false failures by scoping Trivy gate to vulnerability scanning - #1

Closed
Miguel-DevOps with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-build-scan-sign-job
Closed

Fix build-scan-sign false failures by scoping Trivy gate to vulnerability scanning#1
Miguel-DevOps with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-build-scan-sign-job

Conversation

Copilot AI commented Jul 18, 2026

Copy link
Copy Markdown

The build-scan-sign GitHub Actions job was failing in the Trivy step despite the intended policy being a CRITICAL/HIGH vulnerability gate. This updates the workflow to enforce that gate only on vulnerability results.

  • CI scan gate alignment

    • Updated .github/workflows/docker-build-scan-sign.yml in build-scan-sign:
      • Added scanners: vuln to the Trivy action input.
    • Kept existing policy controls unchanged (exit-code: 1, severity: CRITICAL,HIGH, ignore-unfixed: true).
  • Operational impact

    • The scan step now evaluates only vulnerability findings for pass/fail.
    • Non-vulnerability scanners no longer influence this release gate.
- name: Scan built image with Trivy (fail on CRITICAL/HIGH)
  uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1
  with:
    image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-scan
    scanners: vuln
    format: sarif
    output: trivy-results.sarif
    exit-code: 1
    severity: CRITICAL,HIGH
    ignore-unfixed: true

Copilot AI changed the title [WIP] Fix failing GitHub Actions job build-scan-sign Fix build-scan-sign false failures by scoping Trivy gate to vulnerability scanning Jul 18, 2026
Copilot AI requested a review from Miguel-DevOps July 18, 2026 07:07
@Miguel-DevOps
Miguel-DevOps marked this pull request as ready for review July 18, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants