diff --git a/changelog/fragments/scorecard-label-perms.yaml b/changelog/fragments/scorecard-label-perms.yaml new file mode 100644 index 0000000000..6a83700dfd --- /dev/null +++ b/changelog/fragments/scorecard-label-perms.yaml @@ -0,0 +1,5 @@ +entries: + - description: > + Fixed a bug in scorecard that caused tests to fail with permission errors + when loading the bundle. + kind: "bugfix" diff --git a/internal/scorecard/alpha/tar.go b/internal/scorecard/alpha/tar.go index fbd836dcd1..2e7dcae60a 100644 --- a/internal/scorecard/alpha/tar.go +++ b/internal/scorecard/alpha/tar.go @@ -194,7 +194,7 @@ func newTarDirHeader(path string) *tar.Header { Typeflag: tar.TypeDir, Name: filepath.Clean(path) + "/", ModTime: time.Now(), - Mode: 0700, + Mode: 0755, Uid: os.Getuid(), Gid: os.Getgid(), }