Skip to content

Commit

Permalink
fix: use GITHUB_TOKEN for authentication in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen1 committed Jan 19, 2025
1 parent f1072fc commit 5f6dca2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,12 @@ jobs:
*.zip
- name: Copy installation script to bodo.run
if: steps.semantic.outputs.new_release_published == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git clone https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/bodo-run/bodo-run.github.io.git
git clone https://x-access-token:${GH_TOKEN}@github.com/bodo-run/bodo-run.github.io.git
cp scripts/install_yek.sh bodo-run.github.io/public/yek.sh
cp scripts/install_yek.ps1 bodo-run.github.io/public/yek.ps1
COMMIT_SHA=$(git rev-parse HEAD)
Expand All @@ -230,5 +232,5 @@ jobs:
-m "$BODO_COMMIT_MESSAGE" \
-m "" \
-m "https://github.com/bodo-run/yek/commit/$COMMIT_SHA"
git remote set-url origin https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/bodo-run/bodo-run.github.io.git
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/bodo-run/bodo-run.github.io.git
git push

0 comments on commit 5f6dca2

Please sign in to comment.