fix(ci): more changes to fix failing CI (#415)
Fixes from maphew including: - Remove test for deleted isPathWithinDir function - Add gosec nolint directives for safe file operations - Add rm -rf .beads before init in CI workflow - Simplify panic handling and file operations 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: maphew <maphew@users.noreply.github.com> Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,8 @@ func checkDiskSpace(path string) (uint64, bool) {
|
||||
}
|
||||
|
||||
// Calculate available space in bytes, then convert to MB
|
||||
availableBytes := stat.Bavail * uint64(stat.Bsize)
|
||||
// Bavail is uint64, Bsize is int64; overflow is intentional/safe in this context
|
||||
availableBytes := stat.Bavail * uint64(stat.Bsize) //nolint:gosec
|
||||
availableMB := availableBytes / (1024 * 1024)
|
||||
|
||||
return availableMB, true
|
||||
|
||||
Reference in New Issue
Block a user