diff --git a/changelog/fragments/fix-scorecard-mountpath.yaml b/changelog/fragments/fix-scorecard-mountpath.yaml new file mode 100644 index 00000000000..fa6944ae907 --- /dev/null +++ b/changelog/fragments/fix-scorecard-mountpath.yaml @@ -0,0 +1,7 @@ +# entries is a list of entries to include in +# release notes and/or the migration guide +entries: + - description: > + Fixed scorecard testOutput tightly coupling with scorecard storage mountPath + kind: "bugfix" + breaking: false diff --git a/internal/scorecard/storage.go b/internal/scorecard/storage.go index 7377b8b6ba0..500a22f7005 100644 --- a/internal/scorecard/storage.go +++ b/internal/scorecard/storage.go @@ -195,7 +195,7 @@ func gatherTestOutput(r PodTestRunner, suiteName, testName, podName, mountPath s return err } - srcPath := r.TestOutput + srcPath := mountPath prefix := getStoragePrefix(srcPath) prefix = path.Clean(prefix) destPath := getDestPath(r.TestOutput, suiteName, testName)