Skip to content

Commit e86adc8

Browse files
authored
fix: automated PR's permissions (#1381)
1 parent 41fd19d commit e86adc8

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

.github/workflows/bump_templates.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,13 @@ jobs:
2222
- name: Bump templates
2323
run: tool/generate_bundles.sh
2424

25-
- name: Config Git User
26-
run: |
27-
git config user.name VGV Bot
28-
git config user.email [email protected]
29-
3025
- name: Create Pull Request
3126
uses: peter-evans/[email protected]
3227
with:
28+
token: ${{ secrets.VGV_BOT_PAT }}
3329
base: main
3430
branch: feat/bump-template-bundles
3531
commit-message: "feat: bump template bundles"
3632
title: "feat: bump template bundles"
3733
body: Please squash and merge me!
3834
labels: bot
39-
author: VGV Bot <[email protected]>
40-
assignees: vgvbot
41-
committer: VGV Bot <[email protected]>

.github/workflows/spdx_license_bot.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ jobs:
3737
id: make
3838
run: if [[ $(mason make spdx_license -q --licenses "[]" -o test --on-conflict overwrite --set-exit-if-changed) =~ "0 files changed" ]]; then echo "did_change=false"; else echo "did_change=true"; fi >> $GITHUB_ENV
3939

40-
- name: 🔑 Config Git User
41-
if: ${{ env.did_change == 'true' }}
42-
run: |
43-
git config user.name VGV Bot
44-
git config user.email [email protected]
45-
4640
- name: 🧱 Mason Make (lib/pub_license/spdx_license)
4741
if: ${{ env.did_change == 'true' }}
4842
run: |
@@ -55,12 +49,10 @@ jobs:
5549
if: ${{ env.did_change == 'true' }}
5650
uses: peter-evans/[email protected]
5751
with:
52+
token: ${{ secrets.VGV_BOT_PAT }}
5853
base: main
5954
branch: chore/update-spdx-license
6055
commit-message: "chore: update SPDX licenses"
6156
title: "chore: update SPDX licenses"
6257
body: Please squash and merge me!
6358
labels: bot
64-
author: VGV Bot <[email protected]>
65-
assignees: vgvbot
66-
committer: VGV Bot <[email protected]>

0 commit comments

Comments
 (0)