Skip to content

Update Trivy action exit code for testing - #12

Open
Thashira wants to merge 1 commit into
mainfrom
Thashira-patch-2
Open

Update Trivy action exit code for testing#12
Thashira wants to merge 1 commit into
mainfrom
Thashira-patch-2

Conversation

@Thashira

@Thashira Thashira commented May 2, 2026

Copy link
Copy Markdown
Contributor

Changed Trivy action exit code to 0 for testing purposes.

Changed Trivy action exit code to 0 for testing purposes.
Copilot AI review requested due to automatic review settings May 2, 2026 18:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies the CI workflow’s Trivy scan behavior by changing the configured exit code so the scan does not fail the job, which affects how vulnerability findings gate the build-and-deploy pipeline.

Changes:

  • Updated Trivy action configuration to use exit-code: "0" (non-failing) for testing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yaml
Comment on lines 193 to 196
image-ref: "${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.image }}:${{ github.run_number }}"
format: "table"
exit-code: "1"
exit-code: "0" ## for testing purpose made this to 0
severity: "CRITICAL,HIGH"
Comment thread .github/workflows/ci.yaml
image-ref: "${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.image }}:${{ github.run_number }}"
format: "table"
exit-code: "1"
exit-code: "0" ## for testing purpose made this to 0
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