File tree 7 files changed +35
-8
lines changed
7 files changed +35
-8
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,20 @@ jobs:
20
20
with :
21
21
minimum-permission : " write"
22
22
23
+ - name : Generate token
24
+ id : generate-token
25
+ uses : actions/create-github-app-token@v1
26
+ with :
27
+ app-id : ${{ vars.AUTOMATION_APP_ID }}
28
+ private-key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
29
+ owner : ${{ github.repository_owner }}
30
+ repositories : " codeql-coding-standards-release-engineering"
31
+
23
32
- name : Dispatch Matrix Testing Job
24
33
if : steps.check-write-permission.outputs.has-permission
25
34
uses : peter-evans/repository-dispatch@v2
26
35
with :
27
- token : ${{ secrets.RELEASE_ENGINEERING_TOKEN }}
36
+ token : ${{ steps.generate-token.outputs.token }}
28
37
repository : github/codeql-coding-standards-release-engineering
29
38
event-type : matrix-test
30
39
client-payload : ' {"pr": "${{ github.event.number }}"}'
Original file line number Diff line number Diff line change @@ -17,11 +17,20 @@ jobs:
17
17
with :
18
18
minimum-permission : " write"
19
19
20
+ - name : Generate token
21
+ id : generate-token
22
+ uses : actions/create-github-app-token@v1
23
+ with :
24
+ app-id : ${{ vars.AUTOMATION_APP_ID }}
25
+ private-key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
26
+ owner : ${{ github.repository_owner }}
27
+ repositories : " codeql-coding-standards-release-engineering"
28
+
20
29
- name : Dispatch Matrix Testing Job
21
30
if : ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/test-matrix') && steps.check-write-permission.outputs.has-permission }}
22
31
uses : peter-evans/repository-dispatch@v2
23
32
with :
24
- token : ${{ secrets.RELEASE_ENGINEERING_TOKEN }}
33
+ token : ${{ steps.generate-token.outputs.token }}
25
34
repository : github/codeql-coding-standards-release-engineering
26
35
event-type : matrix-test
27
36
client-payload : ' {"pr": "${{ github.event.issue.number }}"}'
Original file line number Diff line number Diff line change @@ -17,11 +17,20 @@ jobs:
17
17
with :
18
18
minimum-permission : " write"
19
19
20
+ - name : Generate token
21
+ id : generate-token
22
+ uses : actions/create-github-app-token@v1
23
+ with :
24
+ app-id : ${{ vars.AUTOMATION_APP_ID }}
25
+ private-key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
26
+ owner : ${{ github.repository_owner }}
27
+ repositories : " codeql-coding-standards-release-engineering"
28
+
20
29
- name : Dispatch Performance Testing Job
21
30
if : ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/test-performance') && steps.check-write-permission.outputs.has-permission }}
22
31
uses : peter-evans/repository-dispatch@v2
23
32
with :
24
- token : ${{ secrets.RELEASE_ENGINEERING_TOKEN }}
33
+ token : ${{ steps.generate-token.outputs.token }}
25
34
repository : github/codeql-coding-standards-release-engineering
26
35
event-type : performance-test
27
36
client-payload : ' {"pr": "${{ github.event.issue.number }}"}'
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ jobs:
103
103
- name : Generate token
104
104
if : env.HOTFIX_RELEASE == 'false'
105
105
id : generate-token
106
- uses : actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
106
+ uses : actions/create-github-app-token@v1
107
107
with :
108
108
app-id : ${{ vars.AUTOMATION_APP_ID }}
109
109
private-key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ jobs:
143
143
144
144
- name : Generate token
145
145
id : generate-token
146
- uses : actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
146
+ uses : actions/create-github-app-token@v1
147
147
with :
148
148
app-id : ${{ vars.AUTOMATION_APP_ID }}
149
149
private-key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
Original file line number Diff line number Diff line change 43
43
44
44
- name : Generate token
45
45
id : generate-token
46
- uses : actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
46
+ uses : actions/create-github-app-token@v1
47
47
with :
48
48
app-id : ${{ vars.AUTOMATION_APP_ID }}
49
49
private-key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
Original file line number Diff line number Diff line change 40
40
steps :
41
41
- name : Generate token
42
42
id : generate-token
43
- uses : actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
43
+ uses : actions/create-github-app-token@v1
44
44
with :
45
45
app-id : ${{ vars.AUTOMATION_APP_ID }}
46
46
private-key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
@@ -108,7 +108,7 @@ jobs:
108
108
steps :
109
109
- name : Generate token
110
110
id : generate-token
111
- uses : actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
111
+ uses : actions/create-github-app-token@v1
112
112
with :
113
113
app-id : ${{ vars.AUTOMATION_APP_ID }}
114
114
private-key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
You can’t perform that action at this time.
0 commit comments