From 934b219d4b828b99d7717f123828ec4253a39c27 Mon Sep 17 00:00:00 2001 From: Hannam Rhee Date: Thu, 24 Aug 2023 23:44:36 +0900 Subject: [PATCH] use access token --- .github/workflows/actions_build.yml | 2 -- .github/workflows/gradle-enterprise-postjob.yml | 2 -- settings.gradle | 6 +----- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/actions_build.yml b/.github/workflows/actions_build.yml index 1ceb8e3b42aa..ab09d7785f26 100644 --- a/.github/workflows/actions_build.yml +++ b/.github/workflows/actions_build.yml @@ -22,8 +22,6 @@ env: GH_TOKEN: ${{ github.token }} RUN_ID: ${{ github.run_id }} PR_NUMBER: ${{ github.event.pull_request.number }} - GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} - GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} jobs: build: diff --git a/.github/workflows/gradle-enterprise-postjob.yml b/.github/workflows/gradle-enterprise-postjob.yml index 4a91d28d1b9b..f2da7af59cbb 100644 --- a/.github/workflows/gradle-enterprise-postjob.yml +++ b/.github/workflows/gradle-enterprise-postjob.yml @@ -10,8 +10,6 @@ env: LC_ALL: "en_US.UTF-8" BUILD_JDK_VERSION: "19" GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} - GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} - GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} RUN_ID: ${{ github.event.workflow_run.id }} COMMIT_SHA: ${{ github.event.workflow_run.head_sha }} # Used by Octokit diff --git a/settings.gradle b/settings.gradle index 4a28ba2839bc..a9dad267ce63 100644 --- a/settings.gradle +++ b/settings.gradle @@ -59,12 +59,8 @@ gradleEnterprise { } buildCache { - remote(HttpBuildCache) { + remote(gradleEnterprise.buildCache) { url = 'https://ge.armeria.dev/cache/armeria/' - credentials { creds -> - creds.username = System.getenv('GRADLE_ENTERPRISE_CACHE_USERNAME') - creds.password = System.getenv('GRADLE_ENTERPRISE_CACHE_PASSWORD') - } push = System.getenv('CI') != null } }