fix: resolve gosec G306 file permission issue in test

Change WriteFile permissions from 0o640 to 0o600 in cleanup test.
This commit is contained in:
clawbot 2026-02-20 02:50:32 -08:00
parent b2a25bc556
commit e3d6202015

View File

@ -32,7 +32,7 @@ func TestCleanupCancelledDeploy_RemovesBuildDir(t *testing.T) {
require.NoError(t, os.MkdirAll(deployDir, 0o750))
// Create a file inside to verify full removal
require.NoError(t, os.WriteFile(filepath.Join(deployDir, "work"), []byte("test"), 0o640))
require.NoError(t, os.WriteFile(filepath.Join(deployDir, "work"), []byte("test"), 0o600))
// Also create a dir for a different deployment (should NOT be removed)
otherDir := filepath.Join(buildDir, "99-xyz789")