Skip to content

Commit 05e49a1

Browse files
committed
ci: fix workflow permissions
1 parent 3d3b1b6 commit 05e49a1

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/default-next-meetup.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ jobs:
3131
claude_args: '--allowedTools "Bash,Read,Edit,Write,Glob,Grep"'
3232

3333
- name: Commit and push changes
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3436
run: |
3537
git config user.name "github-actions[bot]"
3638
git config user.email "github-actions[bot]@users.noreply.github.com"
3739
if [ -n "$(git status --porcelain)" ]; then
3840
git add -A
3941
git commit -m "chore: reset next meetup to default"
40-
git push
42+
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${GITHUB_REF_NAME}"
4143
else
4244
echo "No changes to commit"
4345
fi

.github/workflows/set-next-meetup.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ jobs:
3939
claude_args: '--allowedTools "Bash,Read,Edit,Write,WebFetch,Glob,Grep"'
4040

4141
- name: Commit and push changes
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4244
run: |
4345
git config user.name "github-actions[bot]"
4446
git config user.email "github-actions[bot]@users.noreply.github.com"
4547
if [ -n "$(git status --porcelain)" ]; then
4648
git add -A
4749
git commit -m "chore: set next meetup event"
48-
git push
50+
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${GITHUB_REF_NAME}"
4951
else
5052
echo "No changes to commit"
5153
fi

0 commit comments

Comments
 (0)