From fca3bef457c19182c9e0c68105f3ff92483cd851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Steinh=C3=A4user?= Date: Thu, 25 Jan 2024 20:53:25 +0100 Subject: [PATCH] chore: use github app instead of a personal access token --- .github/workflows/project_automations.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/project_automations.yml b/.github/workflows/project_automations.yml index bf098af..67b515d 100644 --- a/.github/workflows/project_automations.yml +++ b/.github/workflows/project_automations.yml @@ -20,9 +20,11 @@ jobs: - name: 'Move issue to Todo' uses: leonsteinhaeuser/project-beta-automations@v2.1.0 with: - gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }} + gh_app_ID: ${{ vars.GH_APP_ID }} + gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }} + gh_app_secret_key: ${{ vars.PROJECT_ID }} + project_id: ${{ vars.PROJECT_ID }} user: leonsteinhaeuser - project_id: ${{ secrets.PROJECT_ID }} resource_node_id: ${{ github.event.issue.node_id }} status_value: "Todo" @@ -34,8 +36,10 @@ jobs: - name: 'Move PR to "In Progress"' uses: leonsteinhaeuser/project-beta-automations@v2.1.0 with: - gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }} + gh_app_ID: ${{ vars.GH_APP_ID }} + gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }} + gh_app_secret_key: ${{ vars.PROJECT_ID }} + project_id: ${{ vars.PROJECT_ID }} user: leonsteinhaeuser - project_id: ${{ secrets.PROJECT_ID }} resource_node_id: ${{ github.event.pull_request.node_id }} status_value: "In Progress"