@@ -415,7 +415,7 @@ func TestParseDistributionRules(t *testing.T) {
415415 t .Run ("from dist-rules file" , func (t * testing.T ) {
416416 content := `{"distribution_rules":[{"site_name":"site-1","city_name":"city-1","country_codes":["US"]},{"site_name":"site-2"}]}`
417417 filePath := filepath .Join (t .TempDir (), "dist-rules.json" )
418- require .NoError (t , os .WriteFile (filePath , []byte (content ), 0600 ))
418+ require .NoError (t , os .WriteFile (filePath , []byte (content ), 0o600 ))
419419
420420 ctx := & components.Context {}
421421 ctx .AddStringFlag (commands .DistRulesFlag , filePath )
@@ -432,7 +432,7 @@ func TestParseDistributionRules(t *testing.T) {
432432 t .Run ("empty dist-rules file returns no rules" , func (t * testing.T ) {
433433 content := `{"distribution_rules":[]}`
434434 filePath := filepath .Join (t .TempDir (), "dist-rules.json" )
435- require .NoError (t , os .WriteFile (filePath , []byte (content ), 0600 ))
435+ require .NoError (t , os .WriteFile (filePath , []byte (content ), 0o600 ))
436436
437437 ctx := & components.Context {}
438438 ctx .AddStringFlag (commands .DistRulesFlag , filePath )
0 commit comments