From 6c5cc3db6b4c5a98a99207dfb313eacdf1f3c07d Mon Sep 17 00:00:00 2001 From: Ross Oliver Date: Tue, 28 Jan 2025 14:20:04 +0000 Subject: [PATCH] Switch to GitHub App authentication This will allow the CI checks will be ran on the PR raised by the `create-pull-request` action. --- .github/workflows/refresh_knapsack_manifest.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/refresh_knapsack_manifest.yml b/.github/workflows/refresh_knapsack_manifest.yml index b4f6c6c193..03e3394d71 100644 --- a/.github/workflows/refresh_knapsack_manifest.yml +++ b/.github/workflows/refresh_knapsack_manifest.yml @@ -40,9 +40,16 @@ jobs: - name: Run tests run: KNAPSACK_GENERATE_REPORT=true bundle exec rake knapsack:rspec + - uses: actions/create-github-app-token@v1 + id: generate-token + with: + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + - name: Create pull request uses: peter-evans/create-pull-request@v7 with: + token: ${{ steps.generate-token.outputs.token }} branch: refresh-knapsack-manifest delete-branch: true add-paths: knapsack_rspec_report.json