chore: fix lint
parent
3b1f5b0a03
commit
a342e9ea77
2
main.go
2
main.go
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue