From 28720b06bb29b16e07bab66bf396eae6838e6055 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 3 Jan 2025 14:23:21 +0530 Subject: [PATCH] chore(build): ensure AboutLibraries tasks avoid rate limits --- .github/workflows/ci.yml | 2 ++ .github/workflows/release.yml | 1 + android/build.gradle.kts | 2 ++ 3 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c0fe8a5..0a0c4d8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,8 @@ jobs: - name: Run unit tests run: ./gradlew --no-configuration-cache --stacktrace :build-logic:check check -PslimTests + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: (Fail-only) Upload test report if: failure() diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f0c1763c..6fb0bf6f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,6 +59,7 @@ jobs: env: SENTRY_DSN: ${{ secrets.SENTRY_DSN }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | ./gradlew --no-configuration-cache assembleRelease collectReleaseApks collectReleaseBundle -PenableSentry diff --git a/android/build.gradle.kts b/android/build.gradle.kts index d5c70ea0..6fd88f06 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -48,6 +48,8 @@ extensions.configure { experimentalProperties["android.experimental.enableScreenshotTest"] = true } +aboutLibraries.gitHubApiToken = providers.environmentVariable("GITHUB_TOKEN").orNull + baselineProfile { mergeIntoMain = true saveInSrc = true