Skip to content

Commit 53fc05c

Browse files
committed
fix token issue when trying to push changes to repo
1 parent 2e660de commit 53fc05c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/trademark-cla-approval.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,11 @@ jobs:
308308
# Commit the updated file
309309
git config user.name "github-actions[bot]"
310310
git config user.email "github-actions[bot]@users.noreply.github.com"
311+
312+
# Configure git to use the token for authentication
313+
TOKEN="${{ steps.generate-token.outputs.token || secrets.GITHUB_TOKEN }}"
314+
git remote set-url origin "https://x-access-token:${TOKEN}@github.com/${{ github.repository }}.git"
315+
311316
git add cla-signatures.json
312317
git commit -m "Add manual approval for @$USERNAME (PR #$PR_NUMBER) by @$APPROVED_BY" || echo "No changes to commit"
313318
git push

0 commit comments

Comments
 (0)