File tree Expand file tree Collapse file tree 5 files changed +43
-6
lines changed Expand file tree Collapse file tree 5 files changed +43
-6
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,19 @@ jobs:
18
18
with :
19
19
node-version : ' 20'
20
20
21
+ - name : Get Token
22
+ uses : actions/create-github-app-token@v1
23
+ id : get_workflow_token
24
+ with :
25
+ app-id : ${{ vars.APP_ID }}
26
+ private-key : ${{ secrets.PRIVATE_KEY }}
27
+
21
28
- name : Install dependencies
22
29
run : npm install @octokit/core@5.1.0
23
30
24
31
- name : Close issues
25
32
env :
26
- MY_TOKEN : ${{ secrets.AUTH_TOKEN }}
33
+ MY_TOKEN : ${{ steps.get_workflow_token.outputs.token }}
27
34
MY_LABEL : ${{ vars.OCWM_LABEL }}
28
35
OWNER : ${{ vars.ORGANISATION }}
29
36
REPO_NAMES : ${{ vars.REPOSITORIES }}
Original file line number Diff line number Diff line change 17
17
uses : actions/setup-node@v4
18
18
with :
19
19
node-version : ' 20'
20
+
21
+ - name : Get Token
22
+ uses : actions/create-github-app-token@v1
23
+ id : get_workflow_token
24
+ with :
25
+ app-id : ${{ vars.APP_ID }}
26
+ private-key : ${{ secrets.PRIVATE_KEY }}
27
+
20
28
- name : Set up Python
21
29
uses : actions/setup-python@v5
22
30
with :
@@ -34,15 +42,15 @@ jobs:
34
42
title : ${{ steps.create-title.outputs.title }}
35
43
content-filepath : .github/ISSUE_TEMPLATE/open_community_working_meeting.md
36
44
labels : ' Working Meeting'
37
- token : ${{ secrets.AUTH_TOKEN }}
45
+ token : ${{ steps.get_workflow_token.outputs.token }}
38
46
39
47
- name : Install dependencies
40
48
run : npm install @octokit/core@5.1.0
41
49
42
50
- name : Update Issue Body
43
51
uses : actions/github-script@v7
44
52
env :
45
- MY_TOKEN : ${{ secrets.AUTH_TOKEN }}
53
+ MY_TOKEN : ${{ steps.get_workflow_token.outputs.token }}
46
54
SLACK_WEBHOOK : ${{ vars.SLACK_WEBHOOK }}
47
55
with :
48
56
script : |
Original file line number Diff line number Diff line change 16
16
uses : actions/setup-node@v4
17
17
with :
18
18
node-version : ' 20'
19
+
20
+ - name : Get Token
21
+ uses : actions/create-github-app-token@v1
22
+ id : get_workflow_token
23
+ with :
24
+ app-id : ${{ vars.APP_ID }}
25
+ private-key : ${{ secrets.PRIVATE_KEY }}
26
+
19
27
- name : Install dependencies
20
28
run : npm install @octokit/core@5.1.0
21
29
- name : Adding Issues
28
36
REPO_NAMES : ${{ vars.REPOSITORIES }}
29
37
AGENDA_LABEL : ${{ vars.AGENDA_LABEL }}
30
38
OCWM_LABEL : ${{ vars.OCWM_LABEL }}
31
- MY_TOKEN : ${{ secrets.AUTH_TOKEN }}
39
+ MY_TOKEN : ${{ steps.get_workflow_token.outputs.token }}
32
40
with :
33
41
script : |
34
42
const octokit = require('@octokit/core').Octokit
Original file line number Diff line number Diff line change @@ -18,13 +18,20 @@ jobs:
18
18
with :
19
19
node-version : ' 20'
20
20
21
+ - name : Get Token
22
+ uses : actions/create-github-app-token@v1
23
+ id : get_workflow_token
24
+ with :
25
+ app-id : ${{ vars.APP_ID }}
26
+ private-key : ${{ secrets.PRIVATE_KEY }}
27
+
21
28
- name : Install dependencies
22
29
run : npm install @octokit/core@5.1.0
23
30
24
31
- name : Send reminders
25
32
uses : actions/github-script@v7
26
33
env :
27
- MY_TOKEN : ${{ secrets.AUTH_TOKEN }}
34
+ MY_TOKEN : ${{ steps.get_workflow_token.outputs.token }}
28
35
OWNER : ${{ vars.ORGANISATION }}
29
36
REPO : ' community'
30
37
OCWM_LABEL : ${{ vars.OCWM_LABEL }}
Original file line number Diff line number Diff line change @@ -16,13 +16,20 @@ jobs:
16
16
with :
17
17
node-version : ' 20'
18
18
19
+ - name : Get Token
20
+ uses : actions/create-github-app-token@v1
21
+ id : get_workflow_token
22
+ with :
23
+ app-id : ${{ vars.APP_ID }}
24
+ private-key : ${{ secrets.PRIVATE_KEY }}
25
+
19
26
- name : Install dependencies
20
27
run : npm install @octokit/core@5.1.0
21
28
22
29
- name : Send reminders
23
30
uses : actions/github-script@v7
24
31
env :
25
- MY_TOKEN : ${{ secrets.AUTH_TOKEN }}
32
+ MY_TOKEN : ${{ steps.get_workflow_token.outputs.token }}
26
33
OWNER : ${{ vars.ORGANISATION }}
27
34
REPO : ' community'
28
35
OCWM_LABEL : ${{ vars.OCWM_LABEL }}
You can’t perform that action at this time.
0 commit comments