diff --git a/pipelines/shared-tasks/run-integration-tests/task.sh b/pipelines/shared-tasks/run-integration-tests/task.sh index 7170c1c4e..7963a7ceb 100755 --- a/pipelines/shared-tasks/run-integration-tests/task.sh +++ b/pipelines/shared-tasks/run-integration-tests/task.sh @@ -257,7 +257,7 @@ fi # 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" + chmod 777 "$initial_working_directory/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