From 78313538a3e01d2603e24ebedfc6ef00d31fa5fe Mon Sep 17 00:00:00 2001 From: David Schuppa <32750715+davidSchuppa@users.noreply.github.com> Date: Thu, 7 Mar 2024 14:54:44 +0100 Subject: [PATCH] chore(pipeline): fix google auth by giving correct permissions to job SUITEDEV-35352 Co-authored-by: megamegax Co-authored-by: Andras Sarro --- .github/workflows/nightly_e2e_workflow.yml | 3 +++ .github/workflows/release_sample_app_workflow.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly_e2e_workflow.yml b/.github/workflows/nightly_e2e_workflow.yml index fd4f4d88..496202b0 100644 --- a/.github/workflows/nightly_e2e_workflow.yml +++ b/.github/workflows/nightly_e2e_workflow.yml @@ -38,6 +38,9 @@ jobs: Build: runs-on: ubuntu-latest name: Build job + permissions: + contents: 'read' + id-token: 'write' steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/release_sample_app_workflow.yml b/.github/workflows/release_sample_app_workflow.yml index b56ca5da..55d1f093 100644 --- a/.github/workflows/release_sample_app_workflow.yml +++ b/.github/workflows/release_sample_app_workflow.yml @@ -33,7 +33,7 @@ env: jobs: ReleaseSampleApp: - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} name: Release Sample App runs-on: ubuntu-latest steps: @@ -69,7 +69,7 @@ jobs: serviceAccountJson: ./sample/google-play-store-service-account.json packageName: com.emarsys.sample releaseFiles: sample/build/outputs/bundle/release/sample-release.aab - track: ${{ github.event.workflow_run.inputs.track }} + track: ${{ github.event.workflow_run.inputs.track != null && github.event.workflow_run.inputs.track || alpha }} Report: if: ${{ always() && github.event.workflow_run.conclusion == 'success' }}