1414 HEAD_SHA : ${{ github.event.pull_request.head.sha }}
1515
1616jobs :
17-
1817 pre-validate-performance :
1918 outputs :
2019 check-run-id : ${{ steps.create-check-run.outputs.check-run-id }}
@@ -39,10 +38,18 @@ jobs:
3938 needs : pre-validate-performance
4039 runs-on : ubuntu-22.04
4140 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"
4249 - name : Invoke performance test
4350 env :
4451 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 }}
4653 run : |
4754 jq -n \
4855 --arg ref "$HEAD_SHA" \
5158 | \
5259 gh workflow run release-performance-testing.yml \
5360 --json \
54- -R github/codeql-coding-standards-release-engineering \
55- --ref rvermeulen/release-process
61+ -R github/codeql-coding-standards-release-engineering
5662
5763 on-failure-validate-performance-dispatch :
5864 needs : [pre-validate-performance, validate-performance]
6167 steps :
6268 - name : Fail check run status
6369 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 }}
6672 run : |
6773 jq -n \
6874 --arg status "completed" \
@@ -100,10 +106,18 @@ jobs:
100106 needs : pre-validate-compiler-compatibility
101107 runs-on : ubuntu-22.04
102108 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"
103117 - name : Invoke compiler compatibility test
104118 env :
105119 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 }}
107121 run : |
108122 jq -n \
109123 --arg ref "$HEAD_SHA" \
@@ -112,18 +126,18 @@ jobs:
112126 | \
113127 gh workflow run release-compiler-validation.yml \
114128 --json \
115- -R github/codeql-coding-standards-release-engineering \
116- --ref rvermeulen/release-process
129+ -R github/codeql-coding-standards-release-engineering
117130
118131 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]
120134 if : failure()
121135 runs-on : ubuntu-22.04
122136 steps :
123137 - name : Fail check run status
124138 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 }}
127141 run : |
128142 jq -n \
129143 --arg status "completed" \
0 commit comments