From f25c92d9415f9340f2c10f04ec1d5c67b47cd0b3 Mon Sep 17 00:00:00 2001 From: Somsubhra Bairi Date: Thu, 17 Oct 2024 09:35:34 +0530 Subject: [PATCH] #57 [bug] score-k8s init create the default score.yaml in 0600 instead of 0755 Signed-off-by: Somsubhra Bairi --- .github/workflows/ci.yaml | 2 +- main_init.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 035d4d3..04c4509 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/main_init.go b/main_init.go index 08dad00..4698f76 100644 --- a/main_init.go +++ b/main_init.go @@ -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()