Skip to content

Commit f3d6b25

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

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/project_automations.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ on:
55
types:
66
- opened
77
pull_request_target:
8-
types:
9-
- opened
108
pull_request:
11-
types:
12-
- opened
139

1410
jobs:
11+
debug:
12+
name: debug
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Print event name
16+
run: echo ${{ github.event_name }}
17+
- name: Print event action
18+
run: echo ${{ github.event.action }}
19+
1520
issue_opened:
1621
name: issue_opened
1722
runs-on: ubuntu-latest
@@ -20,9 +25,11 @@ jobs:
2025
- name: 'Move issue to Todo'
2126
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
2227
with:
23-
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
28+
gh_app_ID: ${{ vars.GH_APP_ID }}
29+
gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }}
30+
gh_app_secret_key: ${{ vars.PROJECT_ID }}
31+
project_id: ${{ vars.PROJECT_ID }}
2432
user: leonsteinhaeuser
25-
project_id: ${{ secrets.PROJECT_ID }}
2633
resource_node_id: ${{ github.event.issue.node_id }}
2734
status_value: "Todo"
2835

@@ -34,8 +41,10 @@ jobs:
3441
- name: 'Move PR to "In Progress"'
3542
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
3643
with:
37-
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
44+
gh_app_ID: ${{ vars.GH_APP_ID }}
45+
gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }}
46+
gh_app_secret_key: ${{ vars.PROJECT_ID }}
47+
project_id: ${{ vars.PROJECT_ID }}
3848
user: leonsteinhaeuser
39-
project_id: ${{ secrets.PROJECT_ID }}
4049
resource_node_id: ${{ github.event.pull_request.node_id }}
4150
status_value: "In Progress"

0 commit comments

Comments
 (0)