Merge pull request #6386 from zwwhdls/fix-new-layer

fix: chmod new layer to 0o644 when creating it
This commit is contained in:
Michael Yang 2024-08-21 10:58:45 -07:00 committed by GitHub
commit 4ecc70d3b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,6 +51,9 @@ func NewLayer(r io.Reader, mediatype string) (Layer, error) {
if err := os.Rename(temp.Name(), blob); err != nil {
return Layer{}, err
}
if err := os.Chmod(blob, 0o644); err != nil {
return Layer{}, err
}
}
return Layer{