Skip to content

Commit

Permalink
chore: reduce folder perms
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Shad Nik <arturshadnik@gmail.com>
  • Loading branch information
arturshadnik committed Dec 10, 2024
1 parent c2492ba commit a66ac6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ociclient/oci_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (c *Client) WriteLayer(layer v1.Layer, path string, opts ImageOptions) erro
if err != nil {
return fmt.Errorf("failed to read layer content: %w", err)
}
if err := os.MkdirAll(opts.OutDir, 0644); err != nil {
if err := os.MkdirAll(opts.OutDir, 0640); err != nil {

Check warning on line 199 in pkg/ociclient/oci_client.go

View check run for this annotation

Codecov / codecov/patch

pkg/ociclient/oci_client.go#L199

Added line #L199 was not covered by tests
return fmt.Errorf("failed to create output directory: %w", err)
}
if err := os.WriteFile(path, content, 0600); err != nil {

Check warning on line 202 in pkg/ociclient/oci_client.go

View check run for this annotation

Codecov / codecov/patch

pkg/ociclient/oci_client.go#L202

Added line #L202 was not covered by tests
Expand Down

0 comments on commit a66ac6b

Please sign in to comment.