Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes the order of operations in the release workflow to prevent goreleaser from dirtying the git state. The issue occurred because goreleaser runs go mod tidy as a before hook, which could modify files after the SBOM was generated. By moving SBOM generation to after goreleaser completes, the workflow ensures all git state modifications happen before the SBOM is created.
Key changes:
- Moved SBOM generation from before goreleaser to after goreleaser execution
- Combined separate "Generate" and "Upload" steps into a single "Generate and Upload Source SBOM" step
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #47 +/- ##
=======================================
Coverage 87.14% 87.14%
=======================================
Files 46 46
Lines 2474 2474
=======================================
Hits 2156 2156
Misses 218 218
Partials 100 100
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Avoid dirtying the git state by moving sbom generation after goreleaser builds.