fix: rootless permission bits (new actions cache) (#2242)

* fix: rootless permission bits (new actions cache)

* add test

* fix lint / more tests
This commit is contained in:
ChristopherHX authored and GitHub committed 2024-03-08 01:25:03 +00:00
1 parent 352ad41ad2
commit 119ceb81d9
2 files changed
+80 -1

No files matched your search

+1 -1
View File
@@ -679,7 +679,7 @@ func (cr *containerReference) CopyTarStream(ctx context.Context, destPath string
tw := tar.NewWriter(buf)
_ = tw.WriteHeader(&tar.Header{
Name: destPath,
Mode: 777,
Mode: 0o777,
Typeflag: tar.TypeDir,
})
tw.Close()