Use token in run_autogen.yml to enable CI being run

Setting up tokens is necessary to allow github to run CI on pull requests
made automatically - this wasn't the case when the autogen code was added
but is probably a good thing for security reasons.
This commit is contained in:
Charles Giessen 2024-10-08 10:01:12 -05:00 committed by Charles Giessen
parent dff929c3b1
commit 1099d8dd5c

View File

@ -30,6 +30,12 @@ jobs:
PR_NUMBER: ${{ github.event.number }}
steps:
- uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Set up Python
uses: actions/setup-python@v5
with:
@ -54,6 +60,7 @@ jobs:
uses: peter-evans/create-pull-request@v7
if: ${{ steps.git-diff.outputs.git-diff == 'true' }}
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: Update to latest Vulkan-Headers
title: Update to latest Vulkan-Headers
branch: run-autogen