File tree Expand file tree Collapse file tree 3 files changed +40
-6
lines changed
Expand file tree Collapse file tree 3 files changed +40
-6
lines changed Original file line number Diff line number Diff line change 1010 add_to_project :
1111 runs-on : ubuntu-latest
1212 steps :
13+ - name : Get token
14+ id : get_token
15+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
16+ with :
17+ app_id : ${{ secrets.OBS_AUTOMATION_APP_ID }}
18+ private_key : ${{ secrets.OBS_AUTOMATION_APP_PEM }}
19+ permissions : >-
20+ {
21+ "organization_projects": "write",
22+ "issues": "read"
23+ }
13241425 id : add_to_project
1526 with :
2738 contentid : ${{ github.event.issue.node_id }}
2839 env :
2940 PROJECT_ID : " PVT_kwDOAGc3Zs0VSg"
30- GITHUB_TOKEN : ${{ secrets.APM_TECH_USER_TOKEN }}
41+ GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
31423243 id : label_team
3344 with :
5061 value : " 6c538d8a"
5162 env :
5263 PROJECT_ID : " PVT_kwDOAGc3Zs0VSg"
53- GITHUB_TOKEN : ${{ secrets.APM_TECH_USER_TOKEN }}
64+ GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212 if : github.event.label.name == 'Team:Docs'
1313 steps :
14+ - name : Get token
15+ id : get_token
16+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
17+ with :
18+ app_id : ${{ secrets.OBS_AUTOMATION_APP_ID }}
19+ private_key : ${{ secrets.OBS_AUTOMATION_APP_PEM }}
20+ permissions : >-
21+ {
22+ "organization_projects": "write",
23+ "issues": "read"
24+ }
14251526 id : add_to_project
1627 with :
2839 contentid : ${{ github.event.issue.node_id }}
2940 env :
3041 PROJECT_ID : " PVT_kwDOAGc3Zs0iZw"
31- GITHUB_TOKEN : ${{ secrets.APM_TECH_USER_TOKEN }}
42+ GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
Original file line number Diff line number Diff line change 44 types : [opened]
55 pull_request_target :
66 types : [opened]
7- env :
8- MY_GITHUB_TOKEN : ${{ secrets.APM_TECH_USER_TOKEN }}
97
108permissions :
119 contents : read
1614 triage :
1715 runs-on : ubuntu-latest
1816 steps :
17+ - name : Get token
18+ id : get_token
19+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
20+ with :
21+ app_id : ${{ secrets.OBS_AUTOMATION_APP_ID }}
22+ private_key : ${{ secrets.OBS_AUTOMATION_APP_PEM }}
23+ permissions : >-
24+ {
25+ "members": "read",
26+ "organization_projects": "write",
27+ "issues": "read"
28+ }
1929 - name : Add aws-λ-extension label
20302131 with :
3141 usernamesToExclude : |
3242 apmmachine
3343 dependabot
34- GITHUB_TOKEN : ${{ secrets.APM_TECH_USER_TOKEN }}
44+ GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
3545 - name : Show team membership
3646 run : |
3747 echo "::debug::isTeamMember: ${{ steps.checkUserMember.outputs.isTeamMember }}"
5060 project : ' https://github.com/orgs/elastic/projects/454'
5161 project_id : ' 5882982'
5262 column_name : ' In Progress'
63+ env :
64+ MY_GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
You can’t perform that action at this time.
0 commit comments