From d449eb38dae8603cf78351dfcafc6d1354260c4b Mon Sep 17 00:00:00 2001 From: Bug Magnet Date: Fri, 9 Aug 2024 09:56:14 +0200 Subject: [PATCH] Enable permissions when calling sub workflow --- .github/workflows/ios-end-to-end-tests-api.yml | 4 ++++ .github/workflows/ios-end-to-end-tests-merge-to-main.yml | 4 ++++ .github/workflows/ios-end-to-end-tests-nightly.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/ios-end-to-end-tests-api.yml b/.github/workflows/ios-end-to-end-tests-api.yml index bdb873a80b93..b3d789ae7932 100644 --- a/.github/workflows/ios-end-to-end-tests-api.yml +++ b/.github/workflows/ios-end-to-end-tests-api.yml @@ -4,6 +4,10 @@ on: workflow_dispatch: jobs: reuse-e2e-workflow: + permissions: + contents: read + issues: write + pull-requests: write uses: ./.github/workflows/ios-end-to-end-tests.yml with: arg_tests_json_key: "api-tests" diff --git a/.github/workflows/ios-end-to-end-tests-merge-to-main.yml b/.github/workflows/ios-end-to-end-tests-merge-to-main.yml index 5cfe49095316..be91e2789c48 100644 --- a/.github/workflows/ios-end-to-end-tests-merge-to-main.yml +++ b/.github/workflows/ios-end-to-end-tests-merge-to-main.yml @@ -12,6 +12,10 @@ on: - ios/** jobs: reuse-e2e-workflow: + permissions: + contents: read + issues: write + pull-requests: write uses: ./.github/workflows/ios-end-to-end-tests.yml with: arg_tests_json_key: "pr-merge-to-main" diff --git a/.github/workflows/ios-end-to-end-tests-nightly.yml b/.github/workflows/ios-end-to-end-tests-nightly.yml index 4539f90df70d..2408b3322f28 100644 --- a/.github/workflows/ios-end-to-end-tests-nightly.yml +++ b/.github/workflows/ios-end-to-end-tests-nightly.yml @@ -11,6 +11,10 @@ on: - cron: '0 0 * * *' jobs: reuse-e2e-workflow: + permissions: + contents: read + issues: write + pull-requests: write uses: ./.github/workflows/ios-end-to-end-tests.yml with: arg_tests_json_key: "nightly"