fix
Build and Publish / BuildAndDeployAmd64 (push) Failing after 4s
Build and Publish / BuildAndDeployArm64 (push) Failing after 5s

This commit is contained in:
2026-07-05 14:14:02 +02:00
parent 6180706140
commit eed53c96fb
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -174,6 +174,11 @@ func (s *CredentialStore) persistLocked() error {
return fmt.Errorf("customerauth: temp file: %w", err)
}
tmpName := tmp.Name()
if err := tmp.Chmod(0644); err != nil {
tmp.Close()
os.Remove(tmpName)
return fmt.Errorf("customerauth: chmod temp: %w", err)
}
if _, err := tmp.Write(data); err != nil {
tmp.Close()
os.Remove(tmpName)
+4
View File
@@ -128,6 +128,10 @@ func (s *Store) saveLocked() error {
}
tmpName := tmp.Name()
defer os.Remove(tmpName) // no-op once renamed
if err := tmp.Chmod(0644); err != nil {
tmp.Close()
return err
}
if _, err := tmp.Write(data); err != nil {
tmp.Close()
return err