From 3d5ba4cf0a12502bd7df7d4aa80ce4e9b4062a0c Mon Sep 17 00:00:00 2001 From: Dominik Kapusta Date: Wed, 6 Mar 2024 18:07:25 +0100 Subject: [PATCH] Use elevated permissions token to allow for pushing to release/hotfix branches --- .github/workflows/bump_internal_release.yml | 1 + .github/workflows/code_freeze.yml | 2 ++ .github/workflows/hotfix.yml | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bump_internal_release.yml b/.github/workflows/bump_internal_release.yml index 87e86b2a47..9f9fd07cae 100644 --- a/.github/workflows/bump_internal_release.yml +++ b/.github/workflows/bump_internal_release.yml @@ -84,6 +84,7 @@ jobs: APPLE_API_KEY_BASE64: ${{ secrets.APPLE_API_KEY_BASE64 }} APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} APPLE_API_KEY_ISSUER: ${{ secrets.APPLE_API_KEY_ISSUER }} + GH_TOKEN: ${{ secrets.GHA_ELEVATED_PERMISSIONS_TOKEN }} run: | git config --global user.name "Dax the Duck" git config --global user.email "dax@duckduckgo.com" diff --git a/.github/workflows/code_freeze.yml b/.github/workflows/code_freeze.yml index 5a375f7331..895fc8c89f 100644 --- a/.github/workflows/code_freeze.yml +++ b/.github/workflows/code_freeze.yml @@ -33,6 +33,7 @@ jobs: APPLE_API_KEY_BASE64: ${{ secrets.APPLE_API_KEY_BASE64 }} APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} APPLE_API_KEY_ISSUER: ${{ secrets.APPLE_API_KEY_ISSUER }} + GH_TOKEN: ${{ secrets.GHA_ELEVATED_PERMISSIONS_TOKEN }} run: | git config --global user.name "Dax the Duck" git config --global user.email "dax@duckduckgo.com" @@ -109,6 +110,7 @@ jobs: APPLE_API_KEY_BASE64: ${{ secrets.APPLE_API_KEY_BASE64 }} APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} APPLE_API_KEY_ISSUER: ${{ secrets.APPLE_API_KEY_ISSUER }} + GH_TOKEN: ${{ secrets.GHA_ELEVATED_PERMISSIONS_TOKEN }} run: | git config --global user.name "Dax the Duck" git config --global user.email "dax@duckduckgo.com" diff --git a/.github/workflows/hotfix.yml b/.github/workflows/hotfix.yml index 9a3f3afee4..1dad61c119 100644 --- a/.github/workflows/hotfix.yml +++ b/.github/workflows/hotfix.yml @@ -39,7 +39,7 @@ jobs: APPLE_API_KEY_BASE64: ${{ secrets.APPLE_API_KEY_BASE64 }} APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} APPLE_API_KEY_ISSUER: ${{ secrets.APPLE_API_KEY_ISSUER }} - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.GHA_ELEVATED_PERMISSIONS_TOKEN }} run: | git config --global user.name "Dax the Duck" git config --global user.email "dax@duckduckgo.com"