chore: fix lint

main
sudo pacman -Syu 2024-07-26 01:17:35 +07:00
parent 3b1f5b0a03
commit a342e9ea77
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ func (a *action) RunGenerate(c *cli.Context) error {
}
outputFile := filepath.Join(a.flags.output, licenseFilename)
if err := os.WriteFile(outputFile, []byte(licenseData), os.ModePerm); err != nil {
if err := os.WriteFile(outputFile, []byte(licenseData), 0o600); err != nil {
return fmt.Errorf("failed to write file %s: %w", outputFile, err)
}