zarf-dev / zarf

DevSecOps for Air Gap & Limited-Connection Systems. https://zarf.dev/
Apache License 2.0
1.34k stars 162 forks source link

Add workflow to check if running `go mod tidy` changes go mod file #2961

Open AustinAbro321 opened 1 week ago

AustinAbro321 commented 1 week ago

Describe what should be investigated or refactored

We should introduce a workflow that fails if a PR introduces git changes when go mod tidy is run. This will force the creator to run go mod tidy locally and push. This is similar to the check-docs-and-schema workflow.

Additional context

The go.mod of the latest commit on main changes when go mod tidy is run