Skip to content

Commit 12cdc76

Browse files
authored
ci: add multi-approvers GitHub Actions workflow (#801)
Add the multi-approvers workflow using abcxyz/actions to enforce the two-person code review requirement for external contributions
1 parent f060787 commit 12cdc76

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: 'multi-approvers'
16+
17+
on:
18+
# zizmor: ignore[dangerous-triggers] - {Multi-approver check runs in base context without checking out untrusted code}
19+
pull_request_target:
20+
types:
21+
- 'opened'
22+
- 'edited'
23+
- 'reopened'
24+
- 'synchronize'
25+
- 'ready_for_review'
26+
- 'review_requested'
27+
- 'review_request_removed'
28+
pull_request_review:
29+
types:
30+
- 'submitted'
31+
- 'dismissed'
32+
33+
permissions:
34+
actions: 'write'
35+
contents: 'read'
36+
id-token: 'write'
37+
pull-requests: 'read'
38+
39+
concurrency:
40+
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
41+
cancel-in-progress: true
42+
43+
jobs:
44+
multi-approvers:
45+
runs-on: 'ubuntu-latest'
46+
steps:
47+
- name: 'Multi-approvers'
48+
uses: 'abcxyz/actions/.github/actions/multi-approvers@7c003a22a2308639325a29f9d4f4ff60781f6ce1' # main
49+
with:
50+
team: 'googlers'
51+
token: '${{ secrets.MULTI_APPROVERS_TOKEN }}'
52+
user-id-allowlist: '25180681,55107282,122572305,78513119,49699333,70984784,44816363,205009765,56741989,224858768,104649659'

0 commit comments

Comments
 (0)