Skip to content

Commit 5fce9a4

Browse files
Raphaël DrozRaphaël Droz
andauthored
Use reviewer approval to trigger testing (#365)
Co-authored-by: Raphaël Droz <raphael.droz+floss@gmail.com>
1 parent 18bd42e commit 5fce9a4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/actions.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "CI"
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
push:
66
branches:
77
- 'v3'
@@ -15,13 +15,21 @@ env:
1515
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
1616
DISPLAY: ':99.0'
1717
jobs:
18+
approve:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Approve
22+
run: echo For security reasons, all pull requests need to be approved first before running any automated CI.
23+
1824
prepare:
1925
runs-on: ubuntu-latest
26+
needs: [approve]
2027
environment: open-env
2128
steps:
2229
- name: Checkout
2330
uses: actions/checkout@v2
2431
with:
32+
ref: ${{ github.event.pull_request.head.sha }}
2533
fetch-depth: 2
2634

2735
- name: Is environment ok

0 commit comments

Comments
 (0)