From 1099d8dd5c353735ef446f1992eb8bf3c66ad069 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Tue, 8 Oct 2024 10:01:12 -0500 Subject: [PATCH] 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. --- .github/workflows/run_autogen.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/run_autogen.yml b/.github/workflows/run_autogen.yml index ce9e60b..2b89f32 100644 --- a/.github/workflows/run_autogen.yml +++ b/.github/workflows/run_autogen.yml @@ -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