Skip to content

Commit e6eb61c

Browse files
committed
WIP
1 parent 52d0743 commit e6eb61c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ci/docker/run.sh

+5
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,11 @@ if [ "$SCCACHE_BUCKET" != "" ]; then
239239
args="$args --env AWS_ACCESS_KEY_ID"
240240
args="$args --env AWS_SECRET_ACCESS_KEY"
241241
args="$args --env AWS_REGION"
242+
243+
# Disable S3 authentication for PR builds, because the access keys are missing
244+
if [ "$PR_CI_JOB" != "" ]; then
245+
args="$args --env SCCACHE_S3_NO_CREDENTIALS=1"
246+
fi
242247
else
243248
mkdir -p $HOME/.cache/sccache
244249
args="$args --env SCCACHE_DIR=/sccache --volume $HOME/.cache/sccache:/sccache"

0 commit comments

Comments
 (0)