Skip to content

Commit 2caf001

Browse files
committed
Fix NSC promotion branch push token
1 parent f45b31e commit 2caf001

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/promote-nsc-channel.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ jobs:
206206
- name: Commit and push promotion branch
207207
if: steps.manifest-diff.outputs.has_changes == 'true'
208208
env:
209+
PUSH_TOKEN: ${{ github.token }}
209210
PR_BRANCH: ${{ steps.source-run.outputs.pr_branch }}
210211
SOURCE_SHA: ${{ steps.source-run.outputs.source_sha }}
211212
run: |
@@ -214,7 +215,7 @@ jobs:
214215
git config user.name "github-actions[bot]"
215216
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
216217
git remote rename origin upstream
217-
git remote add origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${HEAD_REPO}.git"
218+
git remote add origin "https://x-access-token:${PUSH_TOKEN}@github.com/${HEAD_REPO}.git"
218219
git checkout -B "${PR_BRANCH}"
219220
git add tools/nsc/manifests
220221
git commit -m "Promote NSC channel ${SOURCE_SHA}"

0 commit comments

Comments
 (0)