From 0c6f80c3dbef5e1bbc368e8d85603776332b0fbd Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Thu, 21 Aug 2025 12:18:53 -0700 Subject: [PATCH] chmod the cache directory in task which runs integration tests --- pipelines/shared-tasks/run-integration-tests/task.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pipelines/shared-tasks/run-integration-tests/task.sh b/pipelines/shared-tasks/run-integration-tests/task.sh index 3b3e44542..7170c1c4e 100755 --- a/pipelines/shared-tasks/run-integration-tests/task.sh +++ b/pipelines/shared-tasks/run-integration-tests/task.sh @@ -256,6 +256,9 @@ fi # and that kubectl is configured to talk to the cluster. They also have the # k14s tools available (ytt, kapp, etc) in case they want to do more deploys. if [[ "$(id -u)" == "0" ]]; then + # Give the testrunner user permission to create the Go cache dirs that we configured at the top of this script. + chmod 777 "$PWD/cache" + # Downgrade to a non-root user to run the tests. We don't want them reading the # environment of any parent process, e.g. by reading from /proc. This user account # was created in the Dockerfile of the container image used to run this script in CI.