Skip to content

Commit

Permalink
#57 [bug] score-k8s init create the default score.yaml in 0600 instea…
Browse files Browse the repository at this point in the history
…d of 0755
  • Loading branch information
Somsubhra committed Oct 17, 2024
1 parent d94aa99 commit 89fbaaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
run: |
docker run --rm score-k8s:test --version
docker run -v .:/score-k8s --rm score-k8s:test init
ls | grep score.yaml
cat score.yaml
2 changes: 1 addition & 1 deletion main_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ the new provisioners will take precedence.
},
},
}
if f, err := os.OpenFile(initCmdScoreFile, os.O_CREATE|os.O_WRONLY, 0600); err != nil {
if f, err := os.OpenFile(initCmdScoreFile, os.O_CREATE|os.O_WRONLY, 0755); err != nil {
return errors.Wrap(err, "failed to open empty Score file")
} else {
defer f.Close()
Expand Down

0 comments on commit 89fbaaa

Please sign in to comment.