Skip to content

Commit 49021ad

Browse files
authored
Merge pull request #2472 from rvermeulen/rvermeulen/update-release-branch-authz
Address authentication issue release branch update
2 parents 8fd294e + f824adb commit 49021ad

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/update-release-branch.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
backport:
105105
timeout-minutes: 45
106106
runs-on: ubuntu-latest
107+
environment: Automation
107108
needs: [prepare]
108109
if: ${{ (github.event_name == 'push') && needs.prepare.outputs.backport_target_branches != '[]' }}
109110
strategy:
@@ -114,17 +115,24 @@ jobs:
114115
SOURCE_BRANCH: ${{ needs.prepare.outputs.backport_source_branch }}
115116
TARGET_BRANCH: ${{ matrix.target_branch }}
116117
steps:
118+
- uses: actions/create-github-app-token@31c86eb3b33c9b601a1f60f98dcbfd1d70f379b4
119+
id: app-token
120+
with:
121+
app-id: ${{ vars.AUTOMATION_APP_ID }}
122+
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
117123
- uses: actions/checkout@v4
118124
with:
119125
fetch-depth: 0 # Need full history for calculation of diffs
120126
- uses: ./.github/actions/release-initialise
121127

122128
- name: Update older release branch
129+
env:
130+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
123131
run: |
124132
echo SOURCE_BRANCH=${SOURCE_BRANCH}
125133
echo TARGET_BRANCH=${TARGET_BRANCH}
126134
python .github/update-release-branch.py \
127-
--github-token ${{ secrets.GITHUB_TOKEN }} \
135+
--github-token ${GITHUB_TOKEN} \
128136
--repository-nwo ${{ github.repository }} \
129137
--source-branch ${SOURCE_BRANCH} \
130138
--target-branch ${TARGET_BRANCH} \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy