/{cmd,internal}: fix lint issues
This commit is contained in:
@@ -140,7 +140,7 @@ func findJSONLPath(beadsDir string) string {
|
||||
func acquireBootstrapLock(lockPath string, timeout time.Duration) (*os.File, error) {
|
||||
// Create lock file
|
||||
// #nosec G304 - controlled path
|
||||
f, err := os.OpenFile(lockPath, os.O_CREATE|os.O_RDWR, 0644)
|
||||
f, err := os.OpenFile(lockPath, os.O_CREATE|os.O_RDWR, 0600)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create lock file: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user