From 191ea9077376cdf86cc6be22862c220cc9e66e4c Mon Sep 17 00:00:00 2001 From: matiasleyba Date: Tue, 30 Sep 2025 14:23:49 -0300 Subject: [PATCH 1/2] fix: automated PR's permissions --- .github/workflows/bump_templates.yaml | 6 +----- .github/workflows/spdx_license_bot.yaml | 7 +------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/bump_templates.yaml b/.github/workflows/bump_templates.yaml index 16bb248bb..c15e988b1 100644 --- a/.github/workflows/bump_templates.yaml +++ b/.github/workflows/bump_templates.yaml @@ -22,14 +22,10 @@ jobs: - name: Bump templates run: tool/generate_bundles.sh - - name: Config Git User - run: | - git config user.name VGV Bot - git config user.email vgvbot@users.noreply.github.com - - name: Create Pull Request uses: peter-evans/create-pull-request@v7.0.8 with: + token: ${{ secrets.VGV_BOT_TOKEN }} base: main branch: feat/bump-template-bundles commit-message: "feat: bump template bundles" diff --git a/.github/workflows/spdx_license_bot.yaml b/.github/workflows/spdx_license_bot.yaml index ff2606242..8c55243ad 100644 --- a/.github/workflows/spdx_license_bot.yaml +++ b/.github/workflows/spdx_license_bot.yaml @@ -37,12 +37,6 @@ jobs: id: make 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 - - name: 🔑 Config Git User - if: ${{ env.did_change == 'true' }} - run: | - git config user.name VGV Bot - git config user.email vgvbot@users.noreply.github.com - - name: 🧱 Mason Make (lib/pub_license/spdx_license) if: ${{ env.did_change == 'true' }} run: | @@ -55,6 +49,7 @@ jobs: if: ${{ env.did_change == 'true' }} uses: peter-evans/create-pull-request@v7.0.8 with: + token: ${{ secrets.VGV_BOT_TOKEN }} base: main branch: chore/update-spdx-license commit-message: "chore: update SPDX licenses" From bbd295cc1f401675c7d60fbc07c667511553bdf1 Mon Sep 17 00:00:00 2001 From: matiasleyba Date: Tue, 30 Sep 2025 14:28:38 -0300 Subject: [PATCH 2/2] fix: token name --- .github/workflows/bump_templates.yaml | 5 +---- .github/workflows/spdx_license_bot.yaml | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bump_templates.yaml b/.github/workflows/bump_templates.yaml index c15e988b1..721855ede 100644 --- a/.github/workflows/bump_templates.yaml +++ b/.github/workflows/bump_templates.yaml @@ -25,13 +25,10 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v7.0.8 with: - token: ${{ secrets.VGV_BOT_TOKEN }} + token: ${{ secrets.VGV_BOT_PAT }} base: main branch: feat/bump-template-bundles commit-message: "feat: bump template bundles" title: "feat: bump template bundles" body: Please squash and merge me! labels: bot - author: VGV Bot - assignees: vgvbot - committer: VGV Bot diff --git a/.github/workflows/spdx_license_bot.yaml b/.github/workflows/spdx_license_bot.yaml index 8c55243ad..1280101ce 100644 --- a/.github/workflows/spdx_license_bot.yaml +++ b/.github/workflows/spdx_license_bot.yaml @@ -49,13 +49,10 @@ jobs: if: ${{ env.did_change == 'true' }} uses: peter-evans/create-pull-request@v7.0.8 with: - token: ${{ secrets.VGV_BOT_TOKEN }} + token: ${{ secrets.VGV_BOT_PAT }} base: main branch: chore/update-spdx-license commit-message: "chore: update SPDX licenses" title: "chore: update SPDX licenses" body: Please squash and merge me! labels: bot - author: VGV Bot - assignees: vgvbot - committer: VGV Bot