From 3dcaa20c2573cf89b410742c4dd7e9a4ed7fe531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Thu, 28 Mar 2024 17:29:29 +0100 Subject: [PATCH] Don't populate Develocity cache in pull requests That's potentially dangerous. --- .github/workflows/contributor-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/contributor-build.yml b/.github/workflows/contributor-build.yml index d71952dfcd..0becd9de69 100644 --- a/.github/workflows/contributor-build.yml +++ b/.github/workflows/contributor-build.yml @@ -82,7 +82,8 @@ jobs: - name: Run build script env: RDBMS: ${{ matrix.rdbms }} - POPULATE_REMOTE_GRADLE_CACHE: true + # Don't populate Develocity cache in pull requests as that's potentially dangerous + POPULATE_REMOTE_GRADLE_CACHE: "${{ github.event_name == 'push' }}" GRADLE_ENTERPRISE_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_TOKEN }}" run: ./ci/build-github.sh shell: bash