Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit021fabb

Browse files
authored
Merge pull request#726 from github/lcartey/replace-pat-with-app
Replace PAT with GitHub App for matrix/performance testing
2 parentsc4dafe7 +6238721 commit021fabb

File tree

7 files changed

+35
-8
lines changed

7 files changed

+35
-8
lines changed

‎.github/workflows/dispatch-matrix-check.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,20 @@ jobs:
2020
with:
2121
minimum-permission:"write"
2222

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+
2332
-name:Dispatch Matrix Testing Job
2433
if:steps.check-write-permission.outputs.has-permission
2534
uses:peter-evans/repository-dispatch@v2
2635
with:
27-
token:${{secrets.RELEASE_ENGINEERING_TOKEN }}
36+
token:${{steps.generate-token.outputs.token }}
2837
repository:github/codeql-coding-standards-release-engineering
2938
event-type:matrix-test
3039
client-payload:'{"pr": "${{ github.event.number }}"}'

‎.github/workflows/dispatch-matrix-test-on-comment.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,20 @@ jobs:
1717
with:
1818
minimum-permission:"write"
1919

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+
2029
-name:Dispatch Matrix Testing Job
2130
if:${{ github.event.issue.pull_request && contains(github.event.comment.body, '/test-matrix') && steps.check-write-permission.outputs.has-permission }}
2231
uses:peter-evans/repository-dispatch@v2
2332
with:
24-
token:${{secrets.RELEASE_ENGINEERING_TOKEN }}
33+
token:${{steps.generate-token.outputs.token }}
2534
repository:github/codeql-coding-standards-release-engineering
2635
event-type:matrix-test
2736
client-payload:'{"pr": "${{ github.event.issue.number }}"}'

‎.github/workflows/dispatch-release-performance-check.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,20 @@ jobs:
1717
with:
1818
minimum-permission:"write"
1919

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+
2029
-name:Dispatch Performance Testing Job
2130
if:${{ github.event.issue.pull_request && contains(github.event.comment.body, '/test-performance') && steps.check-write-permission.outputs.has-permission }}
2231
uses:peter-evans/repository-dispatch@v2
2332
with:
24-
token:${{secrets.RELEASE_ENGINEERING_TOKEN }}
33+
token:${{steps.generate-token.outputs.token }}
2534
repository:github/codeql-coding-standards-release-engineering
2635
event-type:performance-test
2736
client-payload:'{"pr": "${{ github.event.issue.number }}"}'

‎.github/workflows/finalize-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
-name:Generate token
104104
if:env.HOTFIX_RELEASE == 'false'
105105
id:generate-token
106-
uses:actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
106+
uses:actions/create-github-app-token@v1
107107
with:
108108
app-id:${{ vars.AUTOMATION_APP_ID }}
109109
private-key:${{ secrets.AUTOMATION_PRIVATE_KEY }}

‎.github/workflows/prepare-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
144144
-name:Generate token
145145
id:generate-token
146-
uses:actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
146+
uses:actions/create-github-app-token@v1
147147
with:
148148
app-id:${{ vars.AUTOMATION_APP_ID }}
149149
private-key:${{ secrets.AUTOMATION_PRIVATE_KEY }}

‎.github/workflows/update-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
-name:Generate token
4545
id:generate-token
46-
uses:actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
46+
uses:actions/create-github-app-token@v1
4747
with:
4848
app-id:${{ vars.AUTOMATION_APP_ID }}
4949
private-key:${{ secrets.AUTOMATION_PRIVATE_KEY }}

‎.github/workflows/validate-release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
steps:
4141
-name:Generate token
4242
id:generate-token
43-
uses:actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
43+
uses:actions/create-github-app-token@v1
4444
with:
4545
app-id:${{ vars.AUTOMATION_APP_ID }}
4646
private-key:${{ secrets.AUTOMATION_PRIVATE_KEY }}
@@ -108,7 +108,7 @@ jobs:
108108
steps:
109109
-name:Generate token
110110
id:generate-token
111-
uses:actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
111+
uses:actions/create-github-app-token@v1
112112
with:
113113
app-id:${{ vars.AUTOMATION_APP_ID }}
114114
private-key:${{ secrets.AUTOMATION_PRIVATE_KEY }}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp