Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
fix: set correct file-permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <christian.kotzbauer@gmail.com>
  • Loading branch information
ckotzbauer committed Oct 7, 2021
1 parent 74651cc commit 386ed83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/deprecation/kyverno.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (d Deprecation) HandleKyvernoResult(stringOutput, output, outputFile string
func printResult(str, outputFile string) {
if outputFile != "" {
data := []byte(str)
err := os.WriteFile(outputFile, data, 0)
err := os.WriteFile(outputFile, data, 0640)

if err != nil {
logrus.WithError(err).Fatalf("Could write output to file!")
Expand Down
2 changes: 1 addition & 1 deletion pkg/printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (p Printer) Print(list PrintableList) {

if p.File != "" {
data := []byte(out)
err := os.WriteFile(p.File, data, 0)
err := os.WriteFile(p.File, data, 0640)

if err != nil {
logrus.WithError(err).Fatalf("Could write output to file!")
Expand Down

0 comments on commit 386ed83

Please sign in to comment.