Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 729de2e

Browse files
committed
[action]: added explicit gh token for builder;
1 parent 596f85f commit 729de2e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/project-generator.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v4
21+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}
2123
- name: Use Node.js ${{ matrix.node-version }}
2224
uses: actions/setup-node@v4
2325
with:
@@ -27,9 +29,11 @@ jobs:
2729
- name: 'Generate Project'
2830
run: node app-builder.js
2931
- name: Commit and push project
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3034
run: |
3135
git config user.name "github-actions[bot]"
3236
git config user.email "github-actions[bot]@users.noreply.github.com"
3337
git add .
3438
git commit -m "[bot,builder]: ran builder;" || echo "No changes to commit"
35-
git push
39+
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git" HEAD:main

0 commit comments

Comments
 (0)