Skip to content

Conversation

@rkcoder101
Copy link
Contributor

Related Issue

Fixes #552

Description

Currently, the vulnerability check fails inside Dagger when bugs are found, preventing the report from being exported. This change adds error handling (|| true) to the govulncheck command to ensure the report is always generated. Vulnerability check ultimately results in a failure at github actions stage.

Attached is the video of the fixed bug

simplescreenrecorder-2025-12-30_23.12.23.mp4

@rkcoder101
Copy link
Contributor Author

Hi @bupd kindly review this whenever you are free. Thanks!

@bupd bupd self-requested a review December 31, 2025 13:26
@bupd bupd self-assigned this Dec 31, 2025
Copy link
Collaborator

@bupd bupd left a comment

Choose a reason for hiding this comment

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

looks good.

@bupd bupd added bug Something isn't working go Pull requests that update go code labels Dec 31, 2025
Copy link
Collaborator

@bupd bupd left a comment

Choose a reason for hiding this comment

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

/lgtm

Currently, the vulnerability check fails inside Dagger when bugs are found, preventing the report from being exported. This change adds error handling (|| true) to the govulncheck command to ensure the report is always generated. Vulnerability check ultimately results in a failure at github actions stage.

Signed-off-by: Rayyan Khan <[email protected]>
@rkcoder101 rkcoder101 force-pushed the fix/vulnerability-check-pipeline branch from 4848e4f to bf6369d Compare January 3, 2026 08:16
@rkcoder101
Copy link
Contributor Author

rkcoder101 commented Jan 3, 2026

Hi @bupd the tests failed last time due to unavailability of demo.goharbor.io. I have force pushed again, please run the tests whenever you are free. Thanks!

@bupd bupd merged commit 6a1f60d into goharbor:main Jan 9, 2026
5 checks passed
@codecov
Copy link

codecov bot commented Jan 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 6.44%. Comparing base (60ad0bd) to head (bf6369d).
⚠️ Report is 67 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##             main    #588      +/-   ##
=========================================
- Coverage   10.99%   6.44%   -4.55%     
=========================================
  Files         173     260      +87     
  Lines        8671   12842    +4171     
=========================================
- Hits          953     828     -125     
- Misses       7612   11908    +4296     
  Partials      106     106              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make Vuln check always pass inside dagger

2 participants