Skip to content

Commit ede11eb

Browse files
chore: use github app instead of a personal access token
1 parent 975f161 commit ede11eb

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
@@ -17,9 +17,11 @@ jobs:
1717
- name: 'Move issue to Todo'
1818
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
1919
with:
20-
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
20+
gh_app_ID: ${{ vars.GH_APP_ID }}
21+
gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }}
22+
gh_app_secret_key: ${{ vars.PROJECT_ID }}
23+
project_id: ${{ vars.PROJECT_ID }}
2124
user: leonsteinhaeuser
22-
project_id: ${{ secrets.PROJECT_ID }}
2325
resource_node_id: ${{ github.event.issue.node_id }}
2426
status_value: "Todo"
2527

@@ -31,8 +33,10 @@ jobs:
3133
- name: 'Move PR to "In Progress"'
3234
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
3335
with:
34-
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
36+
gh_app_ID: ${{ vars.GH_APP_ID }}
37+
gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }}
38+
gh_app_secret_key: ${{ vars.PROJECT_ID }}
39+
project_id: ${{ vars.PROJECT_ID }}
3540
user: leonsteinhaeuser
36-
project_id: ${{ secrets.PROJECT_ID }}
3741
resource_node_id: ${{ github.event.pull_request.node_id }}
3842
status_value: "In Progress"

0 commit comments

Comments
 (0)