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

Commitc3a6231

Browse files
authored
Merge pull request#198 from github/jsinglet/pr-authorization
PR Authorization
2 parents148067d +80afe6e commitc3a6231

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name:🤖 Run Matrix Check
22

33
on:
4-
pull_request:
4+
pull_request_target:
5+
types:[synchronize,opened]
56
branches:
67
-"**"
78
workflow_dispatch:
@@ -11,7 +12,13 @@ jobs:
1112
runs-on:ubuntu-latest
1213
steps:
1314

15+
-name:Test Variables
16+
shell:pwsh
17+
run:|
18+
Write-Host "Running as: ${{github.actor}}"
19+
1420
-name:Dispatch Matrix Testing Job
21+
if:${{ contains(fromJSON('["jsinglet", "mbaluda", "lcartey", "rvermeulen", "ravikprasad", "jeongsoolee09", "hohn", "knewbury01", "kraiouchkine"]'), github.actor) }}
1522
uses:peter-evans/repository-dispatch@v2
1623
with:
1724
token:${{ secrets.RELEASE_ENGINEERING_TOKEN }}
@@ -21,6 +28,7 @@ jobs:
2128

2229

2330
-uses:actions/github-script@v6
31+
if:${{ contains(fromJSON('["jsinglet", "mbaluda", "lcartey", "rvermeulen", "ravikprasad", "jeongsoolee09", "hohn", "knewbury01", "kraiouchkine"]'), github.actor) }}
2432
with:
2533
script:|
2634
github.rest.issues.createComment({

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,27 @@ jobs:
1313
runs-on:ubuntu-latest
1414
steps:
1515

16+
-name:Test Variables
17+
shell:pwsh
18+
run:|
19+
Write-Host "Running as: ${{github.actor}}"
20+
21+
$actor = "${{github.actor}}"
22+
23+
$acl = @("jsinglet","mbaluda", "lcartey", "rvermeulen", "ravikprasad", "jeongsoolee09", "hohn", "knewbury01", "kraiouchkine")
24+
25+
if(-not ($actor -in $acl)){
26+
throw "Refusing to run workflow for user not in acl."
27+
}
28+
1629
-name:Dispatch Performance Testing Job
1730
if:${{ github.event.issue.pull_request && contains(github.event.comment.body, '/test-performance') }}
1831
uses:peter-evans/repository-dispatch@v2
1932
with:
2033
token:${{ secrets.RELEASE_ENGINEERING_TOKEN }}
2134
repository:github/codeql-coding-standards-release-engineering
2235
event-type:performance-test
23-
client-payload:'{"pr": "${{ github.event.number }}"}'
36+
client-payload:'{"pr": "${{ github.event.issue.number }}"}'
2437

2538

2639
-uses:actions/github-script@v6

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp