Use ACTIONS_UPDATE_TOKEN for workflows that push to forks (#6349)

GITHUB_TOKEN doesn't have permission to push to fork branches. Use a PAT stored as ACTIONS_UPDATE_TOKEN instead for:
- VRT update workflow (checkout and push to contributor forks)
- AI-generated release notes (commit files to PR branches)
This commit is contained in:
Matiss Janis Aboltins
2025-12-09 22:47:33 +00:00
committed by GitHub
parent 0aa96ecaee
commit 91f444d788
3 changed files with 8 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ jobs:
if: steps.check-first-comment.outputs.result == 'true' && steps.check-release-notes-exists.outputs.result == 'false' && steps.generate-summary.outputs.result != 'null' && steps.determine-category.outputs.result != 'null' && steps.determine-category.outputs.result != '' if: steps.check-first-comment.outputs.result == 'true' && steps.check-release-notes-exists.outputs.result == 'false' && steps.generate-summary.outputs.result != 'null' && steps.determine-category.outputs.result != 'null' && steps.determine-category.outputs.result != ''
run: node .github/actions/ai-generated-release-notes/create-release-notes-file.js run: node .github/actions/ai-generated-release-notes/create-release-notes-file.js
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.ACTIONS_UPDATE_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }} GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_EVENT_ISSUE_NUMBER: ${{ github.event.issue.number }} GITHUB_EVENT_ISSUE_NUMBER: ${{ github.event.issue.number }}
SUMMARY_DATA: ${{ steps.generate-summary.outputs.result }} SUMMARY_DATA: ${{ steps.generate-summary.outputs.result }}

View File

@@ -58,7 +58,7 @@ jobs:
with: with:
repository: ${{ steps.metadata.outputs.head_repo }} repository: ${{ steps.metadata.outputs.head_repo }}
ref: ${{ steps.metadata.outputs.head_ref }} ref: ${{ steps.metadata.outputs.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.ACTIONS_UPDATE_TOKEN }}
fetch-depth: 0 fetch-depth: 0
- name: Validate and apply patch - name: Validate and apply patch

View File

@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [MatissJanis]
---
Change to personal access token on vrt update workflow to trigger ci