diff --git a/.github/actions/android-check/action.yml b/.github/actions/android-check/action.yml index 1cc5c02..c6db7a1 100644 --- a/.github/actions/android-check/action.yml +++ b/.github/actions/android-check/action.yml @@ -9,6 +9,9 @@ inputs: test_gradle_task: description: "A Gradle task(s) for executing unit tests, for example `testReleaseUnitTest` or `testDevEnterpriseUnitTest`" required: true + github_token_danger: + description: "GitHub token for Danger. Must have permissions to read and write issues and pull requests." + required: false runs: using: "composite" @@ -27,4 +30,4 @@ runs: danger_file: 'Dangerfile' danger_id: 'danger-pr' env: - DANGER_GITHUB_API_TOKEN: ${{ github.token }} + DANGER_GITHUB_API_TOKEN: ${{ inputs.github_token_danger }} diff --git a/.github/workflows/android-cloud-check.yml b/.github/workflows/android-cloud-check.yml index cefc60c..4425184 100644 --- a/.github/workflows/android-cloud-check.yml +++ b/.github/workflows/android-cloud-check.yml @@ -44,6 +44,9 @@ on: GRADLE_CACHE_ENCRYPTION_KEY: required: false description: "Configuration cache encryption key" + GITHUB_TOKEN_DANGER: + required: false + description: "GitHub token for Danger. Must have permissions to read and write issues and pull requests." jobs: test: @@ -68,3 +71,4 @@ jobs: with: lint_gradle_task: ${{ inputs.LINT_GRADLE_TASKS }} test_gradle_task: ${{ inputs.TEST_GRADLE_TASKS }} + github_token_danger: ${{ secrets.GITHUB_TOKEN_DANGER }} diff --git a/.github/workflows/ios-kmp-selfhosted-test.yml b/.github/workflows/ios-kmp-selfhosted-test.yml index 448ade3..a3278da 100644 --- a/.github/workflows/ios-kmp-selfhosted-test.yml +++ b/.github/workflows/ios-kmp-selfhosted-test.yml @@ -51,6 +51,9 @@ on: GRADLE_CACHE_ENCRYPTION_KEY: required: false description: "Configuration cache encryption key" + GITHUB_TOKEN_DANGER: + required: false + description: "GitHub token for Danger. Must have permissions to read and write issues and pull requests." jobs: test: @@ -82,7 +85,7 @@ jobs: - name: Fastlane Test uses: futuredapp/.github/.github/actions/ios-fastlane-test@main with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN_DANGER }} custom_values: ${{ inputs.custom_values }} ios_root_path: iosApp custom_build_path: ${{ inputs.custom_build_path }}