Skip to content

Commit f7dc8cc

Browse files
matejvasekknative-prow-robot
authored andcommitted
Fixup tests
Since we do not override uid/gid==0 we need to make mounted data less readable to all. Signed-off-by: Matej Vašek <mvasek@redhat.com>
1 parent b9e85b0 commit f7dc8cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/builders/builders_int_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func TestPrivateGitRepository(t *testing.T) {
6565
}
6666

6767
gitCredsDir := t.TempDir()
68-
err := os.WriteFile(filepath.Join(gitCredsDir, "type"), []byte(`git-credentials`), 0600)
68+
err := os.WriteFile(filepath.Join(gitCredsDir, "type"), []byte(`git-credentials`), 0644)
6969
if err != nil {
7070
t.Fatal(err)
7171
}
@@ -74,7 +74,7 @@ func TestPrivateGitRepository(t *testing.T) {
7474
username=developer
7575
password=nbusr123
7676
`
77-
err = os.WriteFile(filepath.Join(gitCredsDir, "credentials"), []byte(gitCred), 0600)
77+
err = os.WriteFile(filepath.Join(gitCredsDir, "credentials"), []byte(gitCred), 0644)
7878
if err != nil {
7979
t.Fatal(err)
8080
}

0 commit comments

Comments
 (0)