Skip to content

Commit

Permalink
Use token in run_autogen.yml to enable CI being run
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
charles-lunarg committed Oct 8, 2024
1 parent dff929c commit 1099d8d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/run_autogen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 1099d8d

Please sign in to comment.