14
14
HEAD_SHA : ${{ github.event.pull_request.head.sha }}
15
15
16
16
jobs :
17
-
18
17
pre-validate-performance :
19
18
outputs :
20
19
check-run-id : ${{ steps.create-check-run.outputs.check-run-id }}
@@ -39,10 +38,18 @@ jobs:
39
38
needs : pre-validate-performance
40
39
runs-on : ubuntu-22.04
41
40
steps :
41
+ - name : Generate token
42
+ id : generate-token
43
+ uses : actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
44
+ with :
45
+ app-id : ${{ vars.AUTOMATION_APP_ID }}
46
+ private-key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
47
+ owner : ${{ github.repository_owner }}
48
+ repositories : " codeql-coding-standards-release-engineering"
42
49
- name : Invoke performance test
43
50
env :
44
51
CHECK_RUN_ID : ${{ needs.pre-validate-performance.outputs.check-run-id }}
45
- GH_TOKEN : ${{ secrets.RELEASE_ENGINEERING_TOKEN }}
52
+ GH_TOKEN : ${{ steps.generate-token.outputs.token }}
46
53
run : |
47
54
jq -n \
48
55
--arg ref "$HEAD_SHA" \
51
58
| \
52
59
gh workflow run release-performance-testing.yml \
53
60
--json \
54
- -R github/codeql-coding-standards-release-engineering \
55
- --ref rvermeulen/release-process
61
+ -R github/codeql-coding-standards-release-engineering
56
62
57
63
on-failure-validate-performance-dispatch :
58
64
needs : [pre-validate-performance, validate-performance]
61
67
steps :
62
68
- name : Fail check run status
63
69
env :
64
- CHECK_RUN_ID : ${{ needs.pre-validate-performance.outputs.check-run-id }}
65
- GITHUB_TOKEN : ${{ github.token }}
70
+ CHECK_RUN_ID : ${{ needs.pre-validate-performance.outputs.check-run-id }}
71
+ GITHUB_TOKEN : ${{ github.token }}
66
72
run : |
67
73
jq -n \
68
74
--arg status "completed" \
@@ -100,10 +106,18 @@ jobs:
100
106
needs : pre-validate-compiler-compatibility
101
107
runs-on : ubuntu-22.04
102
108
steps :
109
+ - name : Generate token
110
+ id : generate-token
111
+ uses : actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
112
+ with :
113
+ app-id : ${{ vars.AUTOMATION_APP_ID }}
114
+ private-key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
115
+ owner : ${{ github.repository_owner }}
116
+ repositories : " codeql-coding-standards-release-engineering"
103
117
- name : Invoke compiler compatibility test
104
118
env :
105
119
CHECK_RUN_ID : ${{ needs.pre-validate-compiler-compatibility.outputs.check-run-id }}
106
- GITHUB_TOKEN : ${{ secrets.RELEASE_ENGINEERING_TOKEN }}
120
+ GITHUB_TOKEN : ${{ steps.generate-token.outputs.token }}
107
121
run : |
108
122
jq -n \
109
123
--arg ref "$HEAD_SHA" \
@@ -112,18 +126,18 @@ jobs:
112
126
| \
113
127
gh workflow run release-compiler-validation.yml \
114
128
--json \
115
- -R github/codeql-coding-standards-release-engineering \
116
- --ref rvermeulen/release-process
129
+ -R github/codeql-coding-standards-release-engineering
117
130
118
131
on-failure-validate-compiler-compatibility-dispatch :
119
- needs : [pre-validate-compiler-compatibility, validate-compiler-compatibility]
132
+ needs :
133
+ [pre-validate-compiler-compatibility, validate-compiler-compatibility]
120
134
if : failure()
121
135
runs-on : ubuntu-22.04
122
136
steps :
123
137
- name : Fail check run status
124
138
env :
125
- CHECK_RUN_ID : ${{ needs.pre-validate-compiler-compatibility.outputs.check-run-id }}
126
- GITHUB_TOKEN : ${{ github.token }}
139
+ CHECK_RUN_ID : ${{ needs.pre-validate-compiler-compatibility.outputs.check-run-id }}
140
+ GITHUB_TOKEN : ${{ github.token }}
127
141
run : |
128
142
jq -n \
129
143
--arg status "completed" \
0 commit comments