Skip to content

Commit fca3bef

Browse files
chore: use github app instead of a personal access token
1 parent a175b06 commit fca3bef

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/project_automations.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020
- name: 'Move issue to Todo'
2121
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
2222
with:
23-
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
23+
gh_app_ID: ${{ vars.GH_APP_ID }}
24+
gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }}
25+
gh_app_secret_key: ${{ vars.PROJECT_ID }}
26+
project_id: ${{ vars.PROJECT_ID }}
2427
user: leonsteinhaeuser
25-
project_id: ${{ secrets.PROJECT_ID }}
2628
resource_node_id: ${{ github.event.issue.node_id }}
2729
status_value: "Todo"
2830

@@ -34,8 +36,10 @@ jobs:
3436
- name: 'Move PR to "In Progress"'
3537
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
3638
with:
37-
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
39+
gh_app_ID: ${{ vars.GH_APP_ID }}
40+
gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }}
41+
gh_app_secret_key: ${{ vars.PROJECT_ID }}
42+
project_id: ${{ vars.PROJECT_ID }}
3843
user: leonsteinhaeuser
39-
project_id: ${{ secrets.PROJECT_ID }}
4044
resource_node_id: ${{ github.event.pull_request.node_id }}
4145
status_value: "In Progress"

0 commit comments

Comments
 (0)