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
2024-03-08 02:25:03 +01:00
committed by GitHub
parent 352ad41ad2
commit 119ceb81d9
2 changed files with 80 additions and 1 deletions

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()