From 5771fc86c1ade8ce71698830d0049fcbd72f15aa Mon Sep 17 00:00:00 2001 From: Thibault NORMAND Date: Tue, 1 Mar 2022 17:48:11 +0100 Subject: [PATCH] feat(file): reduce provenance file permissions. --- pkg/github/provenance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/github/provenance.go b/pkg/github/provenance.go index 566688c9..ddde611d 100644 --- a/pkg/github/provenance.go +++ b/pkg/github/provenance.go @@ -59,7 +59,7 @@ func (e *Environment) PersistProvenanceStatement(ctx context.Context, stmt *into if err != nil { return fmt.Errorf("failed to marshal provenance: %w", err) } - if err := os.WriteFile(path, payload, 0755); err != nil { + if err := os.WriteFile(path, payload, 0644); err != nil { return fmt.Errorf("failed to write provenance: %w", err) }