File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ name: Auto Assign to Project(s)
3
3
on :
4
4
issues :
5
5
types : [opened, edited, milestoned]
6
- env :
7
- MY_GITHUB_TOKEN : ${{ secrets.APM_TECH_USER_TOKEN }}
8
6
9
7
permissions :
10
8
contents : read
@@ -14,10 +12,24 @@ jobs:
14
12
runs-on : ubuntu-latest
15
13
name : Assign milestoned to Project
16
14
steps :
15
+ - name : Get token
16
+ id : get_token
17
+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
18
+ with :
19
+ app_id : ${{ secrets.OBS_AUTOMATION_APP_ID }}
20
+ private_key : ${{ secrets.OBS_AUTOMATION_APP_PEM }}
21
+ permissions : >-
22
+ {
23
+ "organization_projects": "write",
24
+ "issues": "read"
25
+ }
26
+
17
27
- name : Assign issues with milestones to project
18
28
19
29
if : github.event.issue && github.event.issue.milestone
20
30
with :
21
31
project : ' https://github.com/orgs/elastic/projects/454'
22
32
project_id : ' 5882982'
23
33
column_name : ' Planned'
34
+ env :
35
+ MY_GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
You can’t perform that action at this time.
0 commit comments