File tree Expand file tree Collapse file tree
app/cli/internal/policydevel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ func TestPolicyToLint_processFile(t *testing.T) {
8787 t .Run ("process yaml file" , func (t * testing.T ) {
8888 content := "test: yaml"
8989 yamlFile := filepath .Join (tempDir , "test.yaml" )
90- err := os .WriteFile (yamlFile , []byte (content ), 0644 )
90+ err := os .WriteFile (yamlFile , []byte (content ), 0600 )
9191 require .NoError (t , err )
9292
9393 err = policy .processFile (yamlFile )
@@ -304,7 +304,7 @@ func TestPolicyToLint_Validate(t *testing.T) {
304304 require .NoError (t , err )
305305
306306 regoFile := filepath .Join (tempDir , "test.rego" )
307- err = os .WriteFile (regoFile , content , 0644 )
307+ err = os .WriteFile (regoFile , content , 0600 )
308308 require .NoError (t , err )
309309
310310 policy := & PolicyToLint {
@@ -325,7 +325,7 @@ func TestPolicyToLint_Validate(t *testing.T) {
325325 require .NoError (t , err )
326326
327327 regoFile := filepath .Join (tempDir , "format_test.rego" )
328- err = os .WriteFile (regoFile , content , 0644 )
328+ err = os .WriteFile (regoFile , content , 0600 )
329329 require .NoError (t , err )
330330
331331 policy := & PolicyToLint {
You can’t perform that action at this time.
0 commit comments